diff options
author | Fatih Orhan <fatihorhan@gmail.com> | 2013-04-04 11:26:50 +0300 |
---|---|---|
committer | Fatih Orhan <fatihorhan@gmail.com> | 2013-04-04 11:26:50 +0300 |
commit | 1f1a6157aa480553afba0e1ed2537fff94dc7a6b (patch) | |
tree | 6a0e4391026e62254ecda9b9b59ee651e93ec943 /readityourself.php | |
parent | 69fc326c9880c281f8a5c9c5b71100a414971912 (diff) | |
download | wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.gz wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.zst wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.zip |
Fix undefined index and constant problems
Diffstat (limited to 'readityourself.php')
-rwxr-xr-x | readityourself.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/readityourself.php b/readityourself.php index 2071b417..c59bb9d1 100755 --- a/readityourself.php +++ b/readityourself.php | |||
@@ -26,7 +26,11 @@ require_once dirname(__FILE__).'/inc/rain.tpl.class.php'; | |||
26 | 26 | ||
27 | 27 | ||
28 | function url(){ | 28 | function url(){ |
29 | $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; | 29 | $protocol = "http"; |
30 | if(isset($_SERVER['HTTPS'])) | ||
31 | if($_SERVER['HTTPS'] != "off") | ||
32 | $protocol = "https"; | ||
33 | |||
30 | return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | 34 | return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
31 | } | 35 | } |
32 | 36 | ||