Zeile 373 | Zeile 373 |
---|
function fix_css_urls($url) {
|
function fix_css_urls($url) {
|
if(!preg_match("#^(https?://|/)#i", $url) && strpos($url, "../../../") === false)
| if(!preg_match("#^([a-z0-9]+\:|/)#i", $url) && strpos($url, "../../../") === false)
|
{ return "url(../../../{$url})"; }
| { return "url(../../../{$url})"; }
|
Zeile 514 | Zeile 514 |
---|
$stripped_css = preg_replace('#(?<!\\")\}#', "\n}\n", $css);
// Fetch out classes and comments
|
$stripped_css = preg_replace('#(?<!\\")\}#', "\n}\n", $css);
// Fetch out classes and comments
|
preg_match_all('#(\/\*(.|[\r\n])*?\*\/)?([a-z0-9a+\\\[\]\-\"=_:>\*\.\#\,\s\(\)\|~\^]+)(\s*)\{(.*?)\}\n#msi', $stripped_css, $matches, PREG_PATTERN_ORDER);
| preg_match_all('#(\/\*(.|[\r\n])*?\*\/)?([a-z0-9a+\\\[\]\-\"=_:>\*\.\#\,\s\(\)\|~|@\^]+)(\s*)\{(.*?)\}\n#msi', $stripped_css, $matches, PREG_PATTERN_ORDER);
|
$total = count($matches[1]);
for($i=0; $i < $total; $i++)
| $total = count($matches[1]);
for($i=0; $i < $total; $i++)
|