diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-30 23:51:01 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-30 23:51:01 +0200 |
commit | 9f02e3c852a38b4e17ac1ade26144d0b9d554693 (patch) | |
tree | 8c09ade88f627a7cfdd3148b1766ede6b110842f | |
parent | 2aa5a18635a8982b7318d0976ae5d00832fa71ca (diff) |
Added backticks around column names in where clause. Bug report number: 4668
-rw-r--r-- | system/database/DB_active_rec.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index 355868386..cd616336d 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -440,7 +440,7 @@ class CI_DB_active_record extends CI_DB_driver { // exception for "field<=" keys
if ($this->_has_operator($k))
{
- $k = preg_replace("/([A-Za-z_0-9]+)/", $this->_protect_identifiers('$1'), $k);
+ $k = preg_replace("/([A-Za-z_0-9]+)/", $this->_escape_column($this->_protect_identifiers('$1')), $k);
}
else
{
|