Forráskód Böngészése

2005-12-13 Gonzalo Paniagua Javier <[email protected]>

	* FormsAuthenticationModule.cs: ignore any exception thrown when mapping
	the provided virtual path to the physical one. Patch by Cyrille Colin.


svn path=/trunk/mcs/; revision=54323
Gonzalo Paniagua Javier 20 éve
szülő
commit
2823045f76

+ 5 - 0
mcs/class/System.Web/System.Web.Security/ChangeLog

@@ -1,3 +1,8 @@
+2005-12-13 Gonzalo Paniagua Javier <[email protected]>
+
+	* FormsAuthenticationModule.cs: ignore any exception thrown when mapping
+	the provided virtual path to the physical one. Patch by Cyrille Colin.
+
 2005-11-28  Chris Toshok  <[email protected]>
 
 	* FormsAuthenticationModule.cs (OnAuthenticateRequest):

+ 4 - 1
mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs

@@ -87,7 +87,10 @@ namespace System.Web.Security
 #endif
 
 			string reqPath = context.Request.PhysicalPath;
-			string loginPath = context.Request.MapPath (loginPage);
+			string loginPath = null;
+			try {
+				loginPath = context.Request.MapPath (loginPage);
+			} catch {} // ignore
 
 			context.SkipAuthorization = (reqPath == loginPath);