From 54c5502eab5086c304312c3890643edbaec50a5a Mon Sep 17 00:00:00 2001 From: Vysakh Menon Date: Thu, 5 Oct 2023 09:42:58 -0700 Subject: [PATCH] 18035 name request search with single quote (#1449) --- api/namex/resources/requests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/namex/resources/requests.py b/api/namex/resources/requests.py index cd5354dc0..c6848ca60 100644 --- a/api/namex/resources/requests.py +++ b/api/namex/resources/requests.py @@ -411,6 +411,7 @@ def get(): if nr_number: condition = f"requests.nr_num ILIKE '%{nr_number}%'" if nr_name: + nr_name = nr_name.replace("'", "''") if condition: condition += ' OR ' name_condition = "requests.name_search ILIKE '%"