From f7631f18d65eaf7f2b3aa5ee603e84008a681ffc Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 27 Jul 2015 21:54:41 +0300 Subject: Revert "Fix an internal bug in QB where() escaping" This reverts commit 43afc71b777b00cfc2638add6fa3c47d333c5e04. --- system/database/DB_query_builder.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index da8820421..6ea7841e3 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -657,7 +657,10 @@ abstract class CI_DB_query_builder extends CI_DB_driver { if ($v !== NULL) { - $v = ' '.$this->escape($v); + if ($escape === TRUE) + { + $v = ' '.$this->escape($v); + } if ( ! $this->_has_operator($k)) { -- cgit v1.2.3-24-g4f1b