aboutsummaryrefslogtreecommitdiffhomepage
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
parent69fc326c9880c281f8a5c9c5b71100a414971912 (diff)
downloadwallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.gz
wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.tar.zst
wallabag-1f1a6157aa480553afba0e1ed2537fff94dc7a6b.zip
Fix undefined index and constant problems
-rwxr-xr-xinc/Readability.php2
-rwxr-xr-xreadityourself.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/inc/Readability.php b/inc/Readability.php
index 52a37d50..c50bf2ef 100755
--- a/inc/Readability.php
+++ b/inc/Readability.php
@@ -80,7 +80,7 @@ class Readability
80 public $debug = false; 80 public $debug = false;
81 protected $body = null; // 81 protected $body = null; //
82 protected $bodyCache = null; // Cache the body HTML in case we need to re-use it later 82 protected $bodyCache = null; // Cache the body HTML in case we need to re-use it later
83 protected $flags = FLAG_CLEAN_CONDITIONALLY; // 1 | 2 | 4; // Start with all flags set. 83 protected $flags = self::FLAG_CLEAN_CONDITIONALLY; // 1 | 2 | 4; // Start with all flags set.
84 protected $success = false; // indicates whether we were able to extract or not 84 protected $success = false; // indicates whether we were able to extract or not
85 85
86 /** 86 /**
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