aboutsummaryrefslogtreecommitdiffhomepage
path: root/readityourself.php
diff options
context:
space:
mode:
authorFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:26:50 +0300
committerFatih Orhan <fatihorhan@gmail.com>2013-04-04 11:26:50 +0300
commit1f1a6157aa480553afba0e1ed2537fff94dc7a6b (patch)
tree6a0e4391026e62254ecda9b9b59ee651e93ec943 /readityourself.php
parent69fc326c9880c281f8a5c9c5b71100a414971912 (diff)
downloadwallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.gz
wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.zst
wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.zip
Fix undefined index and constant problems
Diffstat (limited to 'readityourself.php')
-rwxr-xr-xreadityourself.php6
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
28function url(){ 28function 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