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 '%"