From: John Molakvoæ (skjnldsv) Date: Thu, 10 Nov 2016 15:20:50 +0000 (+0100) Subject: Regex fix X-Git-Tag: v12.0.0beta1~732^2~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a21d988242b8c6463891da7857d6b91caea7a2e;p=nextcloud-server.git Regex fix Signed-off-by: John Molakvoæ (skjnldsv) --- diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index a5f4f510204..502088f1688 100755 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -156,7 +156,7 @@ class SCSSCacher { * @return string */ private function rebaseUrls($css) { - $re = '/url\([\'"](.*)[\'"]\)/x'; + $re = '/url\([\'"]([\.\w?=\/-]*)[\'"]\)/x'; $subst = 'url(\'../../../'.$this->rootCssLoc.'/$1\')'; return preg_replace($re, $subst, $css); }