diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-05-06 23:54:40 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-05-06 23:54:40 +0200 |
commit | 15c394af375029974595fcd96feeadcb4e7005b8 (patch) | |
tree | 6c38189a9df70cf4cd42b9dc00bc45da86af7d44 /lib/exe/css.php | |
parent | e165ecfd52165e62e63ce2099d077153e9224ad3 (diff) | |
download | rpg-15c394af375029974595fcd96feeadcb4e7005b8.tar.gz rpg-15c394af375029974595fcd96feeadcb4e7005b8.tar.bz2 |
url fixing in CSS compressor fixed #793
darcs-hash:20060506215440-7ad00-a04d6ebb428816b534b7b3636f050885bc02f266.gz
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r-- | lib/exe/css.php | 3 |
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) * |