summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-10-31 11:56:59 +0100
committertianhe1986 <w1s2j3229@163.com>2016-10-31 11:56:59 +0100
commit17e662951c25ae2c83328508e90b9a0b99d49603 (patch)
tree7fc0874aead53588d5b452b058a2c94edee785c1 /system/database/drivers
parent72969fd0bce07663d9a54ada2d0950f248e6a542 (diff)
Fix compile_binds: do not use back references inside a character class.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/odbc/odbc_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index b5512fd76..82efa498c 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -172,7 +172,7 @@ class CI_DB_odbc_driver extends CI_DB_driver {
$ml = strlen($this->bind_marker);
// Make sure not to replace a chunk inside a string that happens to match the bind marker
- if ($c = preg_match_all("/(['\"])[^\\1]*\\1/i", $sql, $matches))
+ if ($c = preg_match_all("/'[^']*'|\"[^\"]*\"/i", $sql, $matches))
{
$c = preg_match_all('/'.preg_quote($this->bind_marker, '/').'/i',
str_replace($matches[0],