Vergleich inc/class_parser.php - 1.4.3 - 1.4.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 393Zeile 393
			foreach($this->smilies_cache as $find => $replace)
{
$find = $this->parse_html($find);

			foreach($this->smilies_cache as $find => $replace)
{
$find = $this->parse_html($find);

 
				$find = preg_quote($find, "#");


				if(version_compare(PHP_VERSION, "5.1.0", ">="))
{

				if(version_compare(PHP_VERSION, "5.1.0", ">="))
{

					$message = preg_replace("#(?<=[^&;\"])".preg_quote($find,"#")."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining, $replacements);







					// Fix issues for smileys starting with a ";"
if($find{0} == ";")
{
$find = "(?<!&gt|&lt|&amp)".$find;
}

$message = preg_replace("#(?<=[^\"])".$find."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining, $replacements);

					$remaining -= $replacements;
if($remaining <= 0)
{

					$remaining -= $replacements;
if($remaining <= 0)
{

Zeile 404Zeile 412
				}
else
{

				}
else
{

					$message = preg_replace("#(?<=[^&;\"])".preg_quote($find,"#")."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining);

					$message = preg_replace("#(?<=[^&;\"])".$find."(?=.\W|\"|\W.|\W$)#si", $replace, $message, $remaining);

				}
}
}

				}
}
}