diff options
-rwxr-xr-x | inc/Readability.php | 2 | ||||
-rwxr-xr-x | readityourself.php | 6 |
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 | ||
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 | ||