diff options
author | tianhe1986 <w1s2j3229@163.com> | 2016-10-28 19:47:23 +0200 |
---|---|---|
committer | tianhe1986 <w1s2j3229@163.com> | 2016-10-28 19:47:23 +0200 |
commit | e791c2dd5112594d423342ceb29d6586acdffba3 (patch) | |
tree | 5ab7e2a0207d90e8060917f228b0d61152a60fe8 /system | |
parent | eef5951ae313c2c4080e94b8c1aa743a6d6c93b7 (diff) |
Revert "Match single quote in is_write_type()."
This reverts commit eef5951ae313c2c4080e94b8c1aa743a6d6c93b7.
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index a9a3f29e5..465d8db7b 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -982,7 +982,7 @@ abstract class CI_DB_driver { */ public function is_write_type($sql) { - return (bool) preg_match('/^\s*["\']?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql); + return (bool) preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql); } // -------------------------------------------------------------------- |