Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Strip leading/trailing whitespace from JSON inputs. #220

Closed
LegallyGeek opened this issue Sep 4, 2015 · 1 comment
Closed

Strip leading/trailing whitespace from JSON inputs. #220

LegallyGeek opened this issue Sep 4, 2015 · 1 comment
Labels

Comments

@LegallyGeek
Copy link

When I created a client account, I fat fingered and did

"redirect_uris": [" https://

Notice the space in front of the https? When you do calls later, if the passed referring URL doesn’t include the leading space it throws a redirect mismatch. If possible, stripping leading and trailing whitespace for JSON values may help avoid this.

@christiansmith
Copy link
Member

Thanks @LegallyGeek. Great catch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants