From 5e819a5e3f688ae41a28277d8ef758656871ede3 Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 22 Nov 2013 17:33:08 +1300 Subject: [PATCH] Refs #4127 images in CSS with url('path or url("path or url(path should be replaced --- core/Theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Theme.php b/core/Theme.php index 1b69b57c590..99d73b34ec1 100644 --- a/core/Theme.php +++ b/core/Theme.php @@ -59,7 +59,7 @@ public function rewriteAssetsPathToTheme($output) '~(src|href)=[\'"]([^\'"]+)[\'"]~', // rewrite images in CSS files, i.e. url(plugins/Morpheus/overrides/themes/default/images/help.png); - '~(url\()([^\)]?[themes|plugins]+[^\)]+[.jpg|png|gif]?)[\)]~', + '~(url\()[\'"]([^\)]?[themes|plugins]+[^\)]+[.jpg|png|gif]?)[\'"][\)]~', // rewrites images in JS files '~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif]?)[\'"]~',