--- serendipity/rss.php 2015-03-12 20:11:57.000000000 +0100 +++ htdocs/rss.php 2015-04-12 13:56:58.730000000 +0200 @@ -245,7 +245,7 @@ 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(); }