mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 06:06:32 +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))
|
||||
{
|
||||
|
||||
eregi("^([[:alnum:] \*\,\'\"\+\?\.\(\)_=[:cntrl:]]+) LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
|
||||
eregi("^([[:alnum:][:cntrl:] \*\,\'\"\+\.\(\)_=]+)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
|
||||
|
||||
$query = $limits[1];
|
||||
if($limits[3])
|
||||
|
Reference in New Issue
Block a user