diff options
author | Andrey Andreev <narf@devilix.net> | 2015-04-06 16:38:25 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-04-06 16:38:25 +0200 |
commit | 7726b75552f765af94038e47a4a4272ac08c646e (patch) | |
tree | d74d660534b72ddc0b6cda9147cecfb64a225346 | |
parent | bd438890ccde1cfe3cb902e52ea7b2eee7a99f3f (diff) | |
parent | 8f793674fec90d0e3306dce59945fbd6da15936a (diff) |
Merge pull request #3739 from yahyaerturan/develop
#3727 Lowercase $side variable for $this->db->like() in Query Builder
-rw-r--r-- | system/database/DB_query_builder.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index e5ffef2bb..a77ed57d0 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php @@ -925,6 +925,9 @@ abstract class CI_DB_query_builder extends CI_DB_driver { ? $this->_group_get_type('') : $this->_group_get_type($type); $v = $this->escape_like_str($v); + + // lowercase $side for in case of UPPERCASE string + $side = strtolower($side); if ($side === 'none') { |