commit | a7ddd2d48ec30f10250b045dbec651fc0e07532e | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Tue Nov 06 11:53:45 2012 +0200 |
committer | Andrey Andreev <narf@bofh.bg> | Tue Nov 06 11:53:45 2012 +0200 |
tree | 2b345e2c83cc98529cc37a150876e55594130274 | |
parent | 7ec4480f5489aaef10f761223b404cb29021fc49 [diff] [blame] |
Fix an escape_identifiers() bug
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 39db161..dfaf0e0 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -1236,7 +1236,7 @@ */ public function escape_identifiers($item) { - if ($this->_escape_char === '' OR empty($item)) + if ($this->_escape_char === '' OR empty($item) OR in_array($item, $this->_reserved_identifiers)) { return $item; }