php 8.1 updates

This commit is contained in:
Brad Dutton
2022-01-08 19:19:03 -08:00
parent 5ac30383a5
commit 3ee59350a1
17 changed files with 56 additions and 42 deletions

View File

@@ -95,7 +95,8 @@ abstract class Database extends Database_Core {
* and \ (the escape character itself).
*/
static function escape_for_like($value) {
if (is_null($value)) return '';
// backslash must go first to avoid double-escaping
return addcslashes($value, '\_%');
}
}
}