aboutsummaryrefslogtreecommitdiff
blob: 187b4babed20e1df29a8fdc6c243d14dc4e21bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/mcs/class/System.Web/System.Web.Util/UrlUtils.cs b/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
index 4f07e83..e229a91 100644
--- a/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
+++ b/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
@@ -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);