BUGFIX Using relative base for all css and javascript paths handled through the Requirements class (in Requirements::path_for_file()), in order to avoid problems with statically cached pages returning mixed protocol links and causing browser security warnings on https://

This commit is contained in:
Ingo Schommer 2011-03-14 18:26:32 +13:00
parent d099c7e5ba
commit b6214fd63b

View File

@ -760,7 +760,7 @@ class Requirements_Backend {
if(preg_match('/^http[s]?/', $fileOrUrl)) {
return $fileOrUrl;
} elseif(Director::fileExists($fileOrUrl)) {
$prefix = Director::absoluteBaseURL();
$prefix = Director::baseURL();
$mtimesuffix = "";
$suffix = '';
if(strpos($fileOrUrl, '?') !== false) {