Skip to content
Snippets Groups Projects
Commit 15c394af authored by Andreas Gohr's avatar Andreas Gohr
Browse files

url fixing in CSS compressor fixed #793

darcs-hash:20060506215440-7ad00-a04d6ebb428816b534b7b3636f050885bc02f266.gz
parent e165ecfd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment