forked from github/kensanata.oddmuse
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:
2
wiki.pl
2
wiki.pl
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user