]> source.dussan.org Git - nextcloud-server.git/commitdiff
Regex fix
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Thu, 10 Nov 2016 15:20:50 +0000 (16:20 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 6 Jan 2017 08:42:13 +0000 (09:42 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
lib/private/Template/SCSSCacher.php

index a5f4f510204f5b5b0f4e0e80ee82e23776b74424..502088f168813512cb394d4eba671185ae464a0f 100755 (executable)
@@ -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);
        }