Vergleich admin/inc/functions_themes.php - 1.6.0 - 1.6.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 373Zeile 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 514Zeile 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++)