From 76c7e161a254beb635c4ce735e94a41e1980c3ce Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 12 Jul 2020 13:36:09 +0700 Subject: [PATCH] using mb_stripos to handle string "NULL" case insensitive --- system/Database/BaseBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index 9e95d1f9b188..c13582c4c044 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -384,7 +384,7 @@ public function select($select = '*', bool $escape = null) * This prevents NULL being escaped * @see https://github.com/codeigniter4/CodeIgniter4/issues/1169 */ - if (mb_strpos(trim($val), 'NULL') === 0) + if (mb_stripos(trim($val), 'NULL') === 0) { $escape = false; }