فهرست منبع

2005-11-01 Gonzalo Paniagua Javier <[email protected]>

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


svn path=/trunk/mcs/; revision=52451
Gonzalo Paniagua Javier 20 سال پیش
والد
کامیت
b6ac58729b

+ 2 - 5
mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs

@@ -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 ();

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

@@ -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.