Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guard to handle index out of range exception #83

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

redryerye
Copy link
Contributor

This pull request is intended to address issue #73 where JWTDecoder may crash with ‘index out of range error’ if a passed String does not fit into the correct JWT format.

This PR adds a guard that checks the number of components separated by dots ( . ) inside the string.

@claassistantio
Copy link

claassistantio commented Dec 5, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@ianpartridge ianpartridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ianpartridge ianpartridge merged commit 0d43542 into Kitura:master Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants