Author: gonzalo
Date: 2005-11-01 12:18:55 -0500 (Tue, 01 Nov 2005)
New Revision: 52451

Modified:
   trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
   trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog
Log:
2005-11-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * ApplicationHost.cs: use the AbsolutePath from the Uri to remove the
        schema prefix if present.



Modified: trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs    
2005-11-01 16:35:02 UTC (rev 52450)
+++ trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs    
2005-11-01 17:18:55 UTC (rev 52451)
@@ -68,12 +68,9 @@
                        if (physicalDir == null)
                                throw new NullReferenceException ();
 
-#pragma warning disable 219
-                       //
-                       // This is done just for validation: it might throw an 
exception
-                       //
+                       // This might throw
                        Uri u = new Uri (physicalDir);
-#pragma warning restore 219 
+                       physicalDir = u.AbsolutePath;
 
                        if (hostType == null)
                                throw new NullReferenceException ();

Modified: trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog     2005-11-01 
16:35:02 UTC (rev 52450)
+++ trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog     2005-11-01 
17:18:55 UTC (rev 52451)
@@ -1,3 +1,8 @@
+2005-11-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * ApplicationHost.cs: use the AbsolutePath from the Uri to remove the
+       schema prefix if present.
+
 2005-09-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * SimpleWorkerRequest.cs: all tests pass now.

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

Reply via email to