Author: adar
Date: 2007-01-11 04:22:22 -0500 (Thu, 11 Jan 2007)
New Revision: 70839

Modified:
   trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
   trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog
Log:
2007-01-11  Adar Wesley <[EMAIL PROTECTED]>

        * ApplicationHost.cs: fixed AppDomain initialization of physical
        path to be in file system semantics



Modified: trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs    
2007-01-11 09:13:35 UTC (rev 70838)
+++ trunk/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs    
2007-01-11 09:22:22 UTC (rev 70839)
@@ -81,12 +81,9 @@
                        if (physicalDir == null)
                                throw new NullReferenceException ();
 
-#if NET_2_0
+                       // Make sure physicalDir has file system semantics
+                       // and not uri semantics ( '\' and not '/' ).
                        physicalDir = Path.GetFullPath (physicalDir);
-#endif
-                       // This might throw
-                       Uri u = new Uri (physicalDir);
-                       physicalDir = HttpUtility.UrlDecode (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     2007-01-11 
09:13:35 UTC (rev 70838)
+++ trunk/mcs/class/System.Web/System.Web.Hosting/ChangeLog     2007-01-11 
09:22:22 UTC (rev 70839)
@@ -1,3 +1,8 @@
+2007-01-11  Adar Wesley <[EMAIL PROTECTED]>
+
+       * ApplicationHost.cs: fixed AppDomain initialization of physical
+       path to be in file system semantics
+
 2006-12-22  Marek Habersack  <[EMAIL PROTECTED]>
 
        * HostingEnvironment.cs: implemented the SetCultures methods.

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

Reply via email to