Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Url decode uris before parsing them.

  • Loading branch information...
commit d31c90e57cff5e49993230d05669cd6e17e9b5cf 1 parent 35993b8
@jacksonh authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/Manos/Manos.Server/UriParser.cs
View
3  src/Manos/Manos.Server/UriParser.cs
@@ -2,6 +2,7 @@
using System;
+using System.Text;
namespace Manos.Server {
@@ -11,6 +12,8 @@ public static bool TryParse (string uri, out string scheme, out string path, out
{
int end;
+ uri = HttpUtility.UrlDecode (uri, Encoding.Default);
+
if (String.IsNullOrEmpty (uri)) {
scheme = null;
path = null;
Please sign in to comment.
Something went wrong with that request. Please try again.