commit | 49884bcb075db7e4e2e583f775909deff5328b6b | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Mon Jun 29 11:52:34 2015 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Mon Jun 29 11:52:34 2015 +0300 |
tree | e1b22a77018a86d7f6ee998c45ae5b22e79a4c51 | |
parent | 7ed93be5325e1622c33ea60bf5f8fc7c42ad8938 [diff] [blame] |
Close #3934
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 64ee880..d2bce5c 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -1751,7 +1751,7 @@ // // 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; }