Skip to content

Commit

Permalink
18035 name request search with single quote (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
vysakh-menon-aot authored Oct 5, 2023
1 parent 2b1f760 commit 54c5502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/namex/resources/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '%"
Expand Down

0 comments on commit 54c5502

Please sign in to comment.