-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible fixes to address perf issue in 6.31 (#2131)
* move bool check sooner * Fixing one bug in JSonWebToken , and a potential exception. The bug: - the constructor of JSonWebToken taking header and payload supposes that these are json, not encoded. They should not be assigned directly to the encoded members. This is likely to provoke plenty of exception. - the potential exception: in ToString(), we don't verify that there is at least one dot. Again could provoke an exception on malformed tokens. * Removing the ".signature" per PR feedback * address PR feedback and take Keegan's work in 7x branch * fix logic * move logic back to previous --------- Co-authored-by: Jean-Marc Prieur <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 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