Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Avoid double escaping in PathString #809

Merged
merged 1 commit into from
Apr 6, 2017
Merged

Avoid double escaping in PathString #809

merged 1 commit into from
Apr 6, 2017

Conversation

JunTaoLuo
Copy link
Contributor

@@ -195,6 +195,7 @@ public void StartsWithSegmentsWithRemainder_DoesMatchUsingSpecifiedComparison(st
[InlineData("pct-encoding", "/单行道", "/%E5%8D%95%E8%A1%8C%E9%81%93")]
[InlineData("mixed1", "/index/单行道=(x*y)[abc]", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D")]
[InlineData("mixed2", "/index/单行道=(x*y)[abc]_", "/index/%E5%8D%95%E8%A1%8C%E9%81%93=(x*y)%5Babc%5D_")]
[InlineData("encoded", "/http%3a%2f%2f[foo]%3A5000/", "/http%3a%2f%2f%5Bfoo%5D%3A5000/")]
Copy link
Member

Choose a reason for hiding this comment

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

Add tests for strings that end with %, %A, and %AB.

@JunTaoLuo JunTaoLuo force-pushed the johluo/escaped-url branch from 5e0ff8a to d77a278 Compare April 6, 2017 20:28
@JunTaoLuo JunTaoLuo force-pushed the johluo/escaped-url branch from d77a278 to 0da88e0 Compare April 6, 2017 20:29
@JunTaoLuo JunTaoLuo merged commit 0da88e0 into dev Apr 6, 2017
@JunTaoLuo JunTaoLuo deleted the johluo/escaped-url branch April 6, 2017 20:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants