summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-30 23:51:01 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-30 23:51:01 +0200
commit9f02e3c852a38b4e17ac1ade26144d0b9d554693 (patch)
tree8c09ade88f627a7cfdd3148b1766ede6b110842f /system/database
parent2aa5a18635a8982b7318d0976ae5d00832fa71ca (diff)
Added backticks around column names in where clause. Bug report number: 4668
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_active_rec.php2
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
{