aspnet/HttpAbstractions

PathString.FromUriComponent(string) should not decode %2F to forward slash

Tratcher opened this issue · 1 comments

%2F, an escaped / is one of the only characters that should not be un-escaped by FromUriComponent. All other characters can correctly be round tripped by ToUriComponent, but %2F creates ambiguity if unescaped.

return new PathString(Uri.UnescapeDataString(uriComponent));

This issue was moved to dotnet/aspnetcore#2686