Zeile 6 | Zeile 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 36 | Zeile 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)
|