use ssl when called, thanks to hboeck!
This commit is contained in:
@ -58,6 +58,8 @@ Version 2.1 ()
|
|||||||
Version 2.0.2 ()
|
Version 2.0.2 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Use https URLs for Atom feed, if called through HTTPS (hboeck)
|
||||||
|
|
||||||
* Restore the "Show toolbar within media selector popup?" option,
|
* Restore the "Show toolbar within media selector popup?" option,
|
||||||
it was ignored before.
|
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");
|
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)) {
|
if (!is_array($entries)) {
|
||||||
$entries = array();
|
$entries = array();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user