summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-06-29 10:52:34 +0200
committerAndrey Andreev <narf@devilix.net>2015-06-29 10:52:34 +0200
commit49884bcb075db7e4e2e583f775909deff5328b6b (patch)
treee1b22a77018a86d7f6ee998c45ae5b22e79a4c51 /system
parent7ed93be5325e1622c33ea60bf5f8fc7c42ad8938 (diff)
Close #3934
Diffstat (limited to 'system')
-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 64ee880c8..d2bce5c97 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1751,7 +1751,7 @@ abstract class CI_DB_driver {
//
// Added exception for single quotes as well, we don't want to alter
// literal strings. -- Narf
- if (strpos($item, '(') !== FALSE OR strpos($item, "'") !== FALSE)
+ if (strcspn($item, "()'") !== strlen($item))
{
return $item;
}