diff --git a/libraries/classes/Table/Search.php b/libraries/classes/Table/Search.php index b29fbf54dc..98713958a3 100644 --- a/libraries/classes/Table/Search.php +++ b/libraries/classes/Table/Search.php @@ -167,7 +167,10 @@ final class Search // strings to numbers and numbers to strings as necessary // during the comparison if ( - preg_match('@char|binary|blob|text|set|date|time|year|uuid@i', $types) + ( + preg_match('@char|binary|blob|text|set|date|time|year|uuid@i', $types) + && !str_starts_with($criteriaValues, '0x') + ) || mb_strpos(' ' . $func_type, 'LIKE') ) { $quot = '\'';