Vergleich inc/class_parser.php - 1.4.0 - 1.4.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 275Zeile 275
		{
foreach($custom_mycode as $key => $mycode)
{

		{
foreach($custom_mycode as $key => $mycode)
{

 
				$mycode['regex'] = str_replace("\x0", "", $mycode['regex']);

				$custom_mycode[$key]['regex'] = "#".$mycode['regex']."#si";
}
$mycode = array_merge($standard_mycode, $custom_mycode);

				$custom_mycode[$key]['regex'] = "#".$mycode['regex']."#si";
}
$mycode = array_merge($standard_mycode, $custom_mycode);

Zeile 392Zeile 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 403Zeile 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);

				}
}
}

				}
}
}