summaryrefslogtreecommitdiff
path: root/modules/pref-feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-02-24 13:18:08 +0100
committerAndrew Dolgov <[email protected]>2008-02-24 13:18:08 +0100
commitd70c5ae4de285c672a9c62deb3f3219e820021c5 (patch)
tree5ca9f519c720b098e7f60bc9aafd39902a8cdcbd /modules/pref-feeds.php
parent9a91a51e0dcfd1a2e56c684531b75a566d76bfe6 (diff)
apply https bugfix from Frank De Meulenaere
Diffstat (limited to 'modules/pref-feeds.php')
-rw-r--r--modules/pref-feeds.php9
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> |";