summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/exe/css.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 48b5e2804..b63841a03 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -221,10 +221,11 @@ function css_loadfile($file,$location=''){
$css = io_readFile($file);
if(!$location) return $css;
- $css = preg_replace('!(url\( *)([^/])!','\\1'.$location.'\\2',$css);
+ $css = preg_replace('#(url\([ \'"]*)((?!/|http://|https://| |\'|"))#','\\1'.$location.'\\3',$css);
return $css;
}
+
/**
* Returns a list of possible Plugin Styles (no existance check here)
*