Skip to content

Commit

Permalink
Fix an escape_identifiers() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 6, 2012
1 parent 7ec4480 commit a7ddd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database/DB_driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ public function field_data($table = '')
*/
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;
}
Expand Down

0 comments on commit a7ddd2d

Please sign in to comment.