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

URL encoding rework #1148

Merged
merged 1 commit into from
Jun 22, 2015
Merged

URL encoding rework #1148

merged 1 commit into from
Jun 22, 2015

Conversation

IgorStepanov
Copy link
Contributor

No description provided.

@s-ludwig
Copy link
Member

Thanks! Merging.

s-ludwig added a commit that referenced this pull request Jun 22, 2015
@s-ludwig s-ludwig merged commit 9fcf224 into vibe-d:master Jun 22, 2015
@IgorStepanov
Copy link
Contributor Author

@s-ludwig thanks! #1143 has been rebased. Please, comment it.

s-ludwig added a commit that referenced this pull request Jul 4, 2015
@@ -187,7 +199,7 @@ struct URL {
str = str[0 .. qi];
} else m_queryString = null;

m_pathString = str;
m_pathString = urlEncode(str, "/");
Copy link
Member

Choose a reason for hiding this comment

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

I didn't realize this during the review, but this causes m_pathString to be encoded twice when URL is constructed from a string. Fixed by 9ae8806.

s-ludwig added a commit that referenced this pull request Jul 4, 2015
The new version is actually a bit too lax in theory, but the most important point is to never reject valid strings.
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.

2 participants