mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Stop using a couple of the php3 compatability wrappers since the
functions they replace are present in the current minimum required php version. There should be no noticable change from this apart from a slight performance increase, but again please report any issues with this change to me git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5261 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -70,7 +70,7 @@ function validate_username($username)
|
||||
{
|
||||
do
|
||||
{
|
||||
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
|
||||
if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['disallow_username'], '#')) . ")\b#i", $username))
|
||||
{
|
||||
$db->sql_freeresult($result);
|
||||
return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
|
||||
@@ -89,7 +89,7 @@ function validate_username($username)
|
||||
{
|
||||
do
|
||||
{
|
||||
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
|
||||
if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['word'], '#')) . ")\b#i", $username))
|
||||
{
|
||||
$db->sql_freeresult($result);
|
||||
return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
|
||||
|
Reference in New Issue
Block a user