Author: gonzalo
Date: 2005-12-13 16:31:23 -0500 (Tue, 13 Dec 2005)
New Revision: 54323

Modified:
   trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
   trunk/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
Log:
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.



Modified: trunk/mcs/class/System.Web/System.Web.Security/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/ChangeLog    2005-12-13 
21:00:44 UTC (rev 54322)
+++ trunk/mcs/class/System.Web/System.Web.Security/ChangeLog    2005-12-13 
21:31:23 UTC (rev 54323)
@@ -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):

Modified: 
trunk/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs 
2005-12-13 21:00:44 UTC (rev 54322)
+++ trunk/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs 
2005-12-13 21:31:23 UTC (rev 54323)
@@ -87,7 +87,10 @@
 #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);
                        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to