mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-04 02:39:08 -04:00
php 8.1 updates
This commit is contained in:
@@ -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, '\_%');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user