aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db')
-rw-r--r--phpBB/db/mssql.php2
-rw-r--r--phpBB/db/odbc.php2
-rw-r--r--phpBB/db/oracle.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/db/mssql.php b/phpBB/db/mssql.php
index 96bb0a3aff..42781e2c89 100644
--- a/phpBB/db/mssql.php
+++ b/phpBB/db/mssql.php
@@ -114,7 +114,7 @@ class sql_db
if(eregi("LIMIT", $query))
{
- eregi("^([[:alnum:][:cntrl:] \*\,\'\"\+\.\(\)_=]+)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
+ preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*$/", $query, $limits);
$query = $limits[1];
if($limits[3])
diff --git a/phpBB/db/odbc.php b/phpBB/db/odbc.php
index 063608ab33..9d50cefc71 100644
--- a/phpBB/db/odbc.php
+++ b/phpBB/db/odbc.php
@@ -130,7 +130,7 @@ class sql_db
{
if(eregi(" LIMIT ", $query))
{
- eregi("^([a-zA-Z0-9 \*\,\'\"\+\?\.\(\)]+) LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
+ preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
$query = $limits[1];
if($limits[3])
diff --git a/phpBB/db/oracle.php b/phpBB/db/oracle.php
index edfe3749c9..beff60ccd4 100644
--- a/phpBB/db/oracle.php
+++ b/phpBB/db/oracle.php
@@ -92,7 +92,7 @@ class sql_db
{
if(eregi("LIMIT", $query))
{
- eregi("^([[:alnum:][:cntrl:] \*\,\'\"\+\.\(\)_=]+)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
+ preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*", $query, $limits);
$query = $limits[1];
if($limits[3])