mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-23 16:52:54 +02:00
[ticket/9933] Wrong handling consecutive multiple asterisks in word censor
Fix consecutive asterisks issue in word censor. PHPBB3-9933
This commit is contained in:
@@ -95,6 +95,9 @@ class acp_words
|
||||
trigger_error($user->lang['ENTER_WORD'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||
}
|
||||
|
||||
// Replace multiple consecutive asterisks with single one as those are not needed
|
||||
$word = preg_replace('#\*{2,}#', '*', $word);
|
||||
|
||||
$sql_ary = array(
|
||||
'word' => $word,
|
||||
'replacement' => $replacement
|
||||
|
Reference in New Issue
Block a user