mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Prevent remove_invisible_characters from removing url encoded characters
Prevent remove_invisible_characters from removing url encoded characters. This creates problems with DB LIKE queries.
This commit is contained in:
parent
3ffa803e9c
commit
73e436f206
@ -1400,7 +1400,7 @@ abstract class BaseConnection implements ConnectionInterface
|
||||
*/
|
||||
protected function _escapeString(string $str): string
|
||||
{
|
||||
return str_replace("'", "''", remove_invisible_characters($str));
|
||||
return str_replace("'", "''", remove_invisible_characters($str, false));
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user