2005-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 1 Nov 2005 17:18:55 +0000 (17:18 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 1 Nov 2005 17:18:55 +0000 (17:18 -0000)
* ApplicationHost.cs: use the AbsolutePath from the Uri to remove the
schema prefix if present.

svn path=/trunk/mcs/; revision=52451

mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
mcs/class/System.Web/System.Web.Hosting/ChangeLog

index a1b02499c01d73b98ff5a7b02f0e097589450346..702ea9e444e8cc788d041f3f27a5e18148806141 100644 (file)
@@ -68,12 +68,9 @@ namespace System.Web.Hosting {
                        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 ();
index 45783f9ce8ce85b641c3cdeccf37a9a766aa984c..c772a388ddb8052b8ef348e76f11caa70870b24f 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ApplicationHost.cs: use the AbsolutePath from the Uri to remove the
+       schema prefix if present.
+
 2005-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * SimpleWorkerRequest.cs: all tests pass now.