From 9ba93e69a5af0dd5b770ff65ce026bf7d12a4e65 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Thu, 7 Mar 2024 15:07:52 +0100 Subject: [PATCH] MT#59597 remove trailing+leading % entirely for "wildcard" param types this code is not run by legacy panel, so the check for "/api" request can be removed. Change-Id: I29410fbbf046a8f00443138720b940de0f09f416 --- lib/NGCP/Panel/Role/API.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/NGCP/Panel/Role/API.pm b/lib/NGCP/Panel/Role/API.pm index f947a1ab61..d7ce8d72de 100644 --- a/lib/NGCP/Panel/Role/API.pm +++ b/lib/NGCP/Panel/Role/API.pm @@ -1983,9 +1983,6 @@ sub wildcard_search { $search_value = $search_string; } else { $op = 'like'; - unless ($c->request->path =~/^api\//i) { - $search_value = '%' . $search_string_escaped . '%'; - } } $op = $comparison_op if (defined $comparison_op); $search_value = $convert_code->($search_string) if (ref $convert_code eq 'CODE');