-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back: Enhance SQL Injection Prevention in Region Search.
Refactored the regionController.js to use parameterized queries in searchRegions function, enhancing protection against SQL Injection. Modified the way query terms are included in the SQL query, using a 'replacements' object for safer query construction. Issue #150 Signed-off-by: Nikolay Martyanov <ohmspectator@gmail.com>
- Loading branch information
1 parent
4479fd7
commit d755f38
Showing
1 changed file
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters