diff options
author | emkael <emkael@tlen.pl> | 2016-05-02 23:27:39 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-02 23:27:39 +0200 |
commit | 94a5fa6b00f333b9b096d262c5a4dbf43a173934 (patch) | |
tree | 73d0fed77e4c63ba93de0628c001981d49bde631 | |
parent | 0d05cd72983ab3e0c9472929915eff16cb8009ac (diff) |
* making sure CSS path fix does not point to a parent directory if only directory is provided as a path
-rw-r--r-- | app/php/web/ClientScriptManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |