Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow strings in limit() and offset()
Back in 68a08a2 int casts were removed in limit() and offset(). This opened up the possibility for applications to provide unsafe user input into these methods and create an injection vector. We've been trying to narrow the accepted types, so instead of adding casting I've added an exception when strings that are not number shaped are provided.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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