mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 14:16:28 +02:00
eregi for LIMIT updated to cope with control chars
git-svn-id: file:///svn/phpbb/trunk@75 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -124,7 +124,7 @@ class sql_db
|
|||||||
if(eregi("LIMIT", $query))
|
if(eregi("LIMIT", $query))
|
||||||
{
|
{
|
||||||
|
|
||||||
eregi("^([[:alnum:] \*\,\'\"\+\?\.\(\)_=[:cntrl:]]+) LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
|
eregi("^([[:alnum:][:cntrl:] \*\,\'\"\+\.\(\)_=]+)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
|
||||||
|
|
||||||
$query = $limits[1];
|
$query = $limits[1];
|
||||||
if($limits[3])
|
if($limits[3])
|
||||||
|
Reference in New Issue
Block a user