Browse Source

* HandlerItem.cs: Fix typo so slashes are stripped from paths properly.

svn path=/trunk/mcs/; revision=21724
Jackson Harper 22 năm trước cách đây
mục cha
commit
7e7247bd80

+ 4 - 0
mcs/class/System.Web/System.Web.Configuration/ChangeLog

@@ -1,3 +1,7 @@
+2004-01-05  Jackson Harper <[email protected]>
+
+	* HandlerItem.cs: Fix typo so slashes are stripped from paths properly.
+	
 2003-12-17  Gonzalo Paniagua Javier <[email protected]>
 
 	* CustomErrorsConfigHandler.cs: handle <system.web><customErrors />..

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration/HandlerItem.cs

@@ -67,7 +67,7 @@ namespace System.Web.Configuration
 			if (pathRegex.IsMatch (path))
 				return true;
 
-			int slash = path.LastIndexOf (path);
+			int slash = path.LastIndexOf ('/');
 			if (slash != -1 && path.Length > slash + 1)
 				return pathRegex.IsMatch (path.Substring (slash + 1));