summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-02 23:27:39 +0200
committeremkael <emkael@tlen.pl>2016-05-02 23:27:39 +0200
commit94a5fa6b00f333b9b096d262c5a4dbf43a173934 (patch)
tree73d0fed77e4c63ba93de0628c001981d49bde631 /app
parent0d05cd72983ab3e0c9472929915eff16cb8009ac (diff)
* making sure CSS path fix does not point to a parent directory if only directory is provided as a path
Diffstat (limited to 'app')
-rw-r--r--app/php/web/ClientScriptManager.php2
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) {