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

Validate URI before attempting to use it #241

Merged
merged 2 commits into from Mar 3, 2017
Merged

Conversation

michaelklishin
Copy link
Collaborator

References #202, whether this validation is sufficient is up for debate.

We do not want to make any assumptions whether the whitespace is
genuinely required or not. If it is, escape it (e.g. %20). If it isn't,
we might have caught an inccorectly defined URI.
Copy link
Collaborator

@gerhard gerhard left a comment

Choose a reason for hiding this comment

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

url.Parse is already validating the URL through url.parse. I'm thinking that tackling #202 head-on would be best. What do you think?

@michaelklishin
Copy link
Collaborator Author

@gerhard no objections.

@gerhard gerhard merged commit 9a99f3d into master Mar 3, 2017
@gerhard gerhard deleted the issue-202-uri-validation branch March 3, 2017 12:13
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.

None yet

2 participants