From b6214fd63be982b4be1d4bca0be42f8a137c64e3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 14 Mar 2011 18:26:32 +1300 Subject: [PATCH] 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:// --- core/Requirements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Requirements.php b/core/Requirements.php index 781e11109..9e9f38728 100644 --- a/core/Requirements.php +++ b/core/Requirements.php @@ -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) {