diff options
author | Andrew Dolgov <[email protected]> | 2008-02-24 13:18:08 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-02-24 13:18:08 +0100 |
commit | d70c5ae4de285c672a9c62deb3f3219e820021c5 (patch) | |
tree | 5ca9f519c720b098e7f60bc9aafd39902a8cdcbd /modules | |
parent | 9a91a51e0dcfd1a2e56c684531b75a566d76bfe6 (diff) |
apply https bugfix from Frank De Meulenaere
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pref-feeds.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index ff9243912..854ca0dc2 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -506,13 +506,10 @@ } if ($p_from != 'tt-rss') { - $tt_uri = 'http://' . $_SERVER['SERVER_NAME'] . - preg_replace('/backend\.php.*$/', - 'tt-rss.php', $_SERVER["REQUEST_URI"]); + $tt_uri = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . preg_replace('/backend\.php.*$/', 'tt-rss.php', $_SERVER["REQUEST_URI"]); - $tp_uri = 'http://' . $_SERVER['SERVER_NAME'] . - preg_replace('/backend\.php.*$/', - 'prefs.php', $_SERVER["REQUEST_URI"]); + + $tp_uri = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER['HTTP_HOST'] . preg_replace('/backend\.php.*$/', 'prefs.php', $_SERVER["REQUEST_URI"]); print "<p><a href='$tt_uri'>Return to Tiny Tiny RSS</a> |"; |