Browse Source

Use IndexOf (char)

svn path=/trunk/mcs/; revision=122117
Gonzalo Paniagua Javier 17 years ago
parent
commit
1c4e0f0d57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mcs/class/System.Web/System.Web/HttpRequest.cs

+ 1 - 1
mcs/class/System.Web/System.Web/HttpRequest.cs

@@ -1744,7 +1744,7 @@ namespace System.Web {
 			
 			if (path.IndexOf (":\\") != 1 && !path.StartsWith ("\\\\"))
 				return path;
-			return path.Substring (path.LastIndexOf ("\\") + 1);
+			return path.Substring (path.LastIndexOf ('\\') + 1);
 		}
 	}
 #endregion