Fix mysqli
This commit is contained in:
parent
67b12fc438
commit
c87f24e3f4
1 changed files with 1 additions and 0 deletions
|
|
@ -518,6 +518,7 @@ class DoliDBMysqli extends DoliDB
|
|||
*/
|
||||
public function escapeforlike($stringtoencode)
|
||||
{
|
||||
// We must first replace the \ char into \\, then we can replace _ and % into \_ and \%
|
||||
return str_replace(array('\\', '_', '%'), array('\\\\', '\_', '\%'), (string) $stringtoencode);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue