Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ValueError when query string contains "'" #563

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

Closed
cutz opened this issue Jul 19, 2018 · 0 comments
Closed

ValueError when query string contains "'" #563

cutz opened this issue Jul 19, 2018 · 0 comments
Milestone

Comments

@cutz
Copy link
Contributor

cutz commented Jul 19, 2018

Similar to Issue #404, oauthlib.common.urldecode raises a ValueError if the provided query string contains a "'" character.

ValueError: Error trying to decode a non urlencoded string. Found invalid characters: set([u"'"]) in the string: 'url=Schr%C3%B6dinger's%20cat'. Please ensure the request/response body is x-www-form-urlencoded.

Per RFC 3986 section 3.4, query strings should be allowed to include the characters defined as pchar which in turn allows for characters defined as sub-delims. This includes the "'" character.

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

No branches or pull requests

2 participants