summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorEric Roberts <eric@cryode.com>2012-07-14 01:30:21 +0200
committerEric Roberts <eric@cryode.com>2012-07-14 01:30:21 +0200
commitfbdad67cac99868509bc1a27affdfc3e4b2a1dee (patch)
tree52c1e86324ee1a8bb36e119711707bdf09419a87 /system/database/DB_driver.php
parentfa337081ced1b1d34805d28f8307f069edf16cdf (diff)
parentdecc642f8c81dcf57e2e3217a44d5b1385163456 (diff)
Merge branch 'develop' of https://github.com/EllisLab/CodeIgniter into develop
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index e9efc8914..d63a1d955 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -985,7 +985,7 @@ abstract class CI_DB_driver {
return $item;
}
// Avoid breaking functions and literal values inside queries
- elseif (ctype_digit($item) OR $item[0] === "'" OR strpos($item, '(') !== FALSE)
+ elseif (ctype_digit($item) OR $item[0] === "'" OR ($this->_escape_char !== '"' && $item[0] === '"') OR strpos($item, '(') !== FALSE)
{
return $item;
}