mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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:
parent
f51b6b9345
commit
d2ec2d3874
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||||
|
|
Loading…
Add table
Reference in a new issue