aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-26 19:08:45 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-02 13:05:58 +0100
commit106af0435551be896f49b295ee19021ae8dd8565 (patch)
tree046a0cfdaec19a1809563468fc35ea387e7a64ca /lib/private/Template
parentcee941a6a32a9b04b46b1425abe5a1a79dc259a8 (diff)
downloadnextcloud-server-106af0435551be896f49b295ee19021ae8dd8565.tar.gz
nextcloud-server-106af0435551be896f49b295ee19021ae8dd8565.zip
Do not rewrite absolute URLs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Template')
-rw-r--r--lib/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 391138255b0..c6473ead09d 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -298,7 +298,7 @@ class SCSSCacher {
* @return string
*/
private function rebaseUrls($css, $webDir) {
- $re = '/url\([\'"]([\.\w?=\/-]*)[\'"]\)/x';
+ $re = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
$subst = 'url(\''.$webDir.'/$1\')';
return preg_replace($re, $subst, $css);
}