Skip to content

Commit

Permalink
Merge pull request #118 from CybercentreCanada/hotfix/signature_statu…
Browse files Browse the repository at this point in the history
…s_del

Fix signature lookup for signature with spaces in the name
  • Loading branch information
cccs-sgaron authored Aug 24, 2021
2 parents 1498240 + e903d87 commit 3ebc947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/routes/manage/signature_detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const SignatureDetail = ({ signature_id, onUpdated, onDeleted }: SignatureDetail
useEffect(() => {
if (type && source && name) {
apiCall({
url: `/api/v4/search/signature/?query=type:${type} AND source:${source} AND name:${name}&rows=1&fl=id`,
url: `/api/v4/search/signature/?query=type:${type} AND source:${source} AND name:"${name}"&rows=1&fl=id`,
onSuccess: api_data => {
if (api_data.api_response.items.length) {
const sigId = api_data.api_response.items[0].id;
Expand Down

0 comments on commit 3ebc947

Please sign in to comment.