Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-11-22 08:33:08 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-22 08:33:08 +0400
commit5e819a5e3f688ae41a28277d8ef758656871ede3 (patch)
treeb95f232a4eb25ac3437d9e1b1b4785dbb1a8def0 /core/Theme.php
parent1fe8319c9bc41b392be49f57f8687d30b9a11331 (diff)
Refs #4127 images in CSS with url('path or url("path or url(path should be replaced
Diffstat (limited to 'core/Theme.php')
-rw-r--r--core/Theme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Theme.php b/core/Theme.php
index 1b69b57c59..99d73b34ec 100644
--- a/core/Theme.php
+++ b/core/Theme.php
@@ -59,7 +59,7 @@ class Theme
'~(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]?)[\'"]~',