Fixed additional Uri.UserInfo char consumed after an escaped char.
authorMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 23 Sep 2014 11:18:12 +0000 (12:18 +0100)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 23 Sep 2014 11:42:10 +0000 (12:42 +0100)
mcs/class/System/System/UriParseComponents.cs

index 0de6d8f91ef15bdec118d786fba901e5e37494b6..7462817f3474a29c750ff5ddfafb4cdd3458bf29 100644 (file)
@@ -337,6 +337,7 @@ namespace System {
                                        if (!Uri.IsHexEncoding (part, index))
                                                return false;
                                        ch = Uri.HexUnescape (part, ref index);
+                                       index--;
                                }
 
                                if (Char.IsLetterOrDigit (ch) || IsUnreserved (ch) || IsSubDelim (ch) || ch == ':'){