use ssl when called, thanks to hboeck!

This commit is contained in:
Garvin Hicking 2015-04-17 15:36:13 +02:00
parent 90a4b95b61
commit 1712d9bb5b
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,8 @@ Version 2.1 ()
Version 2.0.2 ()
------------------------------------------------------------------------
* Use https URLs for Atom feed, if called through HTTPS (hboeck)
* Restore the "Show toolbar within media selector popup?" option,
it was ignored before.

View File

@ -245,7 +245,7 @@ if (!$metadata['template_file'] || $metadata['template_file'] == 'feed_' . $file
die("Invalid RSS version specified or RSS-template file not found\n");
}
$self_url = 'http://' . $_SERVER['HTTP_HOST'] . serendipity_specialchars($_SERVER['REQUEST_URI']);
$self_url = ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . serendipity_specialchars($_SERVER['REQUEST_URI']);
if (!is_array($entries)) {
$entries = array();
}