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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: badwords.php 5086 2010-07-09 15:35:29Z Tomm $

 * $Id: badwords.php 5297 2010-12-28 22:01:14Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

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)