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 /functions.php | |
parent | 9a91a51e0dcfd1a2e56c684531b75a566d76bfe6 (diff) |
apply https bugfix from Frank De Meulenaere
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 06d7e7a74..ae6e0f8e3 100644 --- a/functions.php +++ b/functions.php @@ -5219,7 +5219,7 @@ function article_publish_url($link) { - $url_path = 'http://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); + $url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); $url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY"); @@ -5247,7 +5247,7 @@ * @return string The Mozilla Firefox feed adding URL. */ function add_feed_url() { - $url_path = 'http://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); + $url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); $url_path .= "?op=pref-feeds&quiet=1&subop=add&feed_url=%s"; return $url_path; } // function add_feed_url |