aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-11-10 16:20:50 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:13 +0100
commit9a21d988242b8c6463891da7857d6b91caea7a2e (patch)
treead5371ba4f1925bc64da9f12dfcaa78b45dc5711 /lib/private/Template
parent3b62003c9c085dc76357220fc83f14bcf96c60a2 (diff)
downloadnextcloud-server-9a21d988242b8c6463891da7857d6b91caea7a2e.tar.gz
nextcloud-server-9a21d988242b8c6463891da7857d6b91caea7a2e.zip
Regex fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Template')
-rwxr-xr-xlib/private/Template/SCSSCacher.php2
1 files changed, 1 insertions, 1 deletions
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);
}