Vergleich inc/functions_posting.php - 1.8.17 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
	foreach($smatches[0] as $id => $match)
{
$soffsets[] = $match[1];

	foreach($smatches[0] as $id => $match)
{
$soffsets[] = $match[1];

 
	}
$first_token = 0;
if(isset($soffsets[0])) {
$first_token = $soffsets[0];

	}
// whilst we loop, also remove unnecessary end tokens at the start of string

	}
// whilst we loop, also remove unnecessary end tokens at the start of string

	$first_token = $soffsets[0];

 
	foreach($ematches[0] as $id => $match)
{
if($match[1] > $first_token)

	foreach($ematches[0] as $id => $match)
{
if($match[1] > $first_token)

Zeile 142Zeile 145
		$newtext .= substr($text, $cpy_start, $region[0]-$cpy_start);
$cpy_start = $region[1]+8; // 8 = strlen('[/quote]')
// clean up newlines

		$newtext .= substr($text, $cpy_start, $region[0]-$cpy_start);
$cpy_start = $region[1]+8; // 8 = strlen('[/quote]')
// clean up newlines

		$next_char = $text{$region[1]+8};

		$next_char = $text[$region[1]+8];

		if($next_char == "\r" || $next_char == "\n")
{
++$cpy_start;

		if($next_char == "\r" || $next_char == "\n")
{
++$cpy_start;

			if($next_char == "\r" && $text{$region[1]+9} == "\n")

			if($next_char == "\r" && $text[$region[1]+9] == "\n")

			{
++$cpy_start;
}

			{
++$cpy_start;
}

Zeile 180Zeile 183
	}

// Swap username over if we have a registered user

	}

// Swap username over if we have a registered user

	if($quoted_post['userusername'])

	if(isset($quoted_post['userusername']))

	{
$quoted_post['username'] = $quoted_post['userusername'];

	{
$quoted_post['username'] = $quoted_post['userusername'];

 
	}
else
{
if(empty($quoted_post['username']))
{
$quoted_post['username'] = htmlspecialchars_uni($lang->guest);
}

	}
// Clean up the message
$quoted_post['message'] = preg_replace(array(

	}
// Clean up the message
$quoted_post['message'] = preg_replace(array(