use ssl when called, thanks to hboeck!
This commit is contained in:
parent
90a4b95b61
commit
1712d9bb5b
@ -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.
|
||||
|
||||
|
2
rss.php
2
rss.php
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user