mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/10226] Use is_numeric() instead of preg_replace()
PHPBB3-10226
This commit is contained in:
@@ -48,7 +48,7 @@ class dbal_mysqli extends dbal
|
||||
$socket = NULL;
|
||||
if ($port)
|
||||
{
|
||||
if (preg_match('#^[0-9]+$#', $port))
|
||||
if (is_numeric($port))
|
||||
{
|
||||
$port = (int) $port;
|
||||
}
|
||||
|
Reference in New Issue
Block a user