From 94a5fa6b00f333b9b096d262c5a4dbf43a173934 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 2 May 2016 23:27:39 +0200 Subject: * making sure CSS path fix does not point to a parent directory if only directory is provided as a path --- app/php/web/ClientScriptManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/php/web') diff --git a/app/php/web/ClientScriptManager.php b/app/php/web/ClientScriptManager.php index 0dbdffa..792961b 100644 --- a/app/php/web/ClientScriptManager.php +++ b/app/php/web/ClientScriptManager.php @@ -288,7 +288,7 @@ class ClientScriptManager extends TClientScriptManager { } private function _fixStyleSheetPaths($content, $originalUrl) { - $originalDir = dirname($originalUrl); + $originalDir = dirname($originalUrl . '.'); return preg_replace_callback( '/url\s*\([\'"]?(.*?)[\'"]?\)/', function($matches) use($originalDir) { -- cgit v1.2.3