Merge pull request #2312 from ArsenShnurkov/bug36724
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 10 Dec 2015 00:12:19 +0000 (01:12 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 10 Dec 2015 00:12:19 +0000 (01:12 +0100)
fix for https://bugzilla.xamarin.com/show_bug.cgi?id=36724

mcs/class/System.Web/System.Web.Util/UrlUtils.cs

index 4f07e83f1345769d5dfa62d699c17d526a0eda12..e229a913f8f984008c46e2fbb770d21e29bd1188 100644 (file)
@@ -54,7 +54,7 @@ namespace System.Web.Util {
                        if (path.StartsWith (appvpath))
                                path = path.Substring (appvpath.Length);
 
-                       if (path [0] == '/')
+                       if (path.StartsWith("/"))
                                path = path.Length > 1 ? path.Substring (1) : "";
 
                        return Canonic (appvpath + "(" + id + ")/" + path);