mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/9933] Remove empty word check.
PHPBB3-9933
This commit is contained in:
@@ -3441,11 +3441,6 @@ function get_censor_preg_expression($word, $use_unicode = true)
|
|||||||
{
|
{
|
||||||
static $unicode_support = null;
|
static $unicode_support = null;
|
||||||
|
|
||||||
if (empty($word))
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check whether PHP version supports unicode properties
|
// Check whether PHP version supports unicode properties
|
||||||
if (is_null($unicode_support))
|
if (is_null($unicode_support))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user