cds-snc / report-a-cybercrime

Report a computer crime or scam / Signaler un crime informatique ou une fraude
https://report-a-scam.cds-snc.ca
MIT License
29 stars 14 forks source link

Fix incorrect self harm alarm warning on server while no self harm is detected #2401

Closed dengcn closed 4 years ago

dengcn commented 4 years ago

Fixes #2333 (issue)

Description

This is to fix self harm alarm warning incorrectly logged on server when no self harm is detected

Please include a summary of the change.

Any new packages installed?

Give details How to test: 1) Use harmful words in text description inputs, and submit report, check server side log, you should see something like: "Self harm words detected: suicide,kill,knife,depressed"

2) Do not use any harmful words in text description inputs, and submit report, check server side log, you should not see any thing like "Self harm words detected"

Required followup work

Is there anything related to this that still needs to be done (ex: documentation changes).

Checklist: