From 2a4a8e480a709d133f0616e5b4b18902449444ef Mon Sep 17 00:00:00 2001 From: Richard Brinkman Date: Sun, 26 Jul 2026 11:12:03 +0200 Subject: [PATCH] Fix #20395: quote search term for inet4 fields Signed-off-by: Richard Brinkman --- src/Table/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Table/Search.php b/src/Table/Search.php index 8688f2512b83..bc259e029993 100644 --- a/src/Table/Search.php +++ b/src/Table/Search.php @@ -158,7 +158,7 @@ private function getWhereClause( // (like INT), for a LIKE we always quote the value. MySQL converts // strings to numbers and numbers to strings as necessary // during the comparison - $needsQuoting = preg_match('@char|binary|blob|text|set|date|time|year|uuid@i', $types) === 1 + $needsQuoting = preg_match('@char|binary|blob|inet4|text|set|date|time|year|uuid@i', $types) === 1 || str_contains($funcType, 'LIKE'); // LIKE %...%