From cd717efc1de691f418c30be8149679e7df3c4810 Mon Sep 17 00:00:00 2001 From: Teodor Voicu <104510089+tedw87@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:30:19 +0300 Subject: [PATCH] Update src/plone/restapi/search/handler.py Co-authored-by: Steve Piercy --- src/plone/restapi/search/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plone/restapi/search/handler.py b/src/plone/restapi/search/handler.py index 4740eb126..64a6f90e3 100644 --- a/src/plone/restapi/search/handler.py +++ b/src/plone/restapi/search/handler.py @@ -76,7 +76,7 @@ def _constrain_query_by_path(self, query): query["path"]["query"] = path def quote_chars(self, query): - # Escape parentheses by adding backslashes before them + # Remove parentheses from the query return query.replace("(", "").replace(")", "").strip() def search(self, query=None):