-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reject nul characters in ipr search parameters (#6292)
* fix: Reject nul characters in ipr search parameters Really ought to rework this as a form, but in the meantime this should prevent 500s. Could probably reduce the number of places we check the value. * fix: Guard against absent parameters * fix: Remove stray junk * fix: Use correct response code (400, not 405) * test: Test handling of null chars in IPR search * refactor: Simplify branch statements This helps my code validator see that "start" is always set.
- Loading branch information
1 parent
febdeff
commit 18a1af2
Showing
2 changed files
with
36 additions
and
8 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
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