diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-29 23:13:17 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-29 23:13:17 +0100 |
commit | 4173823ba1b45955d63cb5e8d60f02312e345bda (patch) | |
tree | 96a2cbe539eeebbc895640645005369ea5919712 /system/database | |
parent | cc4b00347c9ff061488bc88194002be701f4190f (diff) |
Fix #2041
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/DB_query_builder.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 9bd535b0e..e77fba63d 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -903,11 +903,12 @@ abstract class CI_DB_query_builder extends CI_DB_driver { } is_bool($escape) OR $escape = $this->_protect_identifiers; - $prefix = (count($this->qb_where) === 0 && count($this->qb_cache_where) === 0) - ? $this->_group_get_type('') : $this->_group_get_type($type); foreach ($field as $k => $v) { + $prefix = (count($this->qb_where) === 0 && count($this->qb_cache_where) === 0) + ? $this->_group_get_type('') : $this->_group_get_type($type); + $v = $this->escape_like_str($v); if ($side === 'none') |