Vergleich admin/modules/config/badwords.php - 1.6.0 - 1.6.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 36Zeile 36
	if(strlen($mybb->input['replacement']) > 100)
{
$errors[] = $lang->replacement_word_max;

	if(strlen($mybb->input['replacement']) > 100)
{
$errors[] = $lang->replacement_word_max;

 
	}

$badword = str_replace('\*', '([a-zA-Z0-9_]{1})', preg_quote($mybb->input['badword'], "#"));

// Don't allow certain badword replacements to be added if it would cause an infinite recursive loop.
if(strlen($mybb->input['badword']) == strlen($mybb->input['replacement']) && preg_match("#(^|\W)".$badword."(\W|$)#i", $mybb->input['replacement']))
{
$errors[] = $lang->error_replacement_word_invalid;

	}

if(!$errors)

	}

if(!$errors)