mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
Re-added str_replace for LOWER -> LCASE in queries
git-svn-id: file:///svn/phpbb/trunk@1942 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -103,6 +103,8 @@ class sql_db
|
|||||||
$this->in_transaction = TRUE;
|
$this->in_transaction = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$query = str_replace("LOWER(", "LCASE(", $query);
|
||||||
|
|
||||||
if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) )
|
if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) )
|
||||||
{
|
{
|
||||||
$query = $limits[1];
|
$query = $limits[1];
|
||||||
|
Reference in New Issue
Block a user