Default css should be retrieved over secure connection

Everything on oddmuse.org now redirects to https, which means that every wiki
that is using default style sheet requires two requests to get the css file.
This commit is contained in:
Alex Schroeder
2015-11-02 20:57:49 +02:00
parent ad8c17be43
commit 4cb8e1bd0a

View File

@@ -2377,7 +2377,7 @@ sub GetCss { # prevent javascript injection
if ($IndexHash{$StyleSheetPage} and not @css) {
push (@css, "$ScriptName?action=browse;id=" . UrlEncode($StyleSheetPage) . ";raw=1;mime-type=text/css")
}
push (@css, 'http://www.oddmuse.org/default.css') unless @css;
push (@css, 'https://www.oddmuse.org/default.css') unless @css;
return join('', map { qq(<link type="text/css" rel="stylesheet" href="$_" />) } @css);
}