Kaynağa Gözat

2004-08-22 Gonzalo Paniagua Javier <[email protected]>

	* HttpServerUtility.cs: ensure we have a full virtual path for the
	request being executed.

svn path=/trunk/mcs/; revision=32669
Gonzalo Paniagua Javier 21 yıl önce
ebeveyn
işleme
b5a43befeb

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

@@ -1,3 +1,8 @@
+2004-08-22 Gonzalo Paniagua Javier <[email protected]>
+
+	* HttpServerUtility.cs: ensure we have a full virtual path for the
+	request being executed.
+
 2004-08-02  Duncan Mak  <[email protected]>
 
 	* ApplicationShutdownReason.cs: Fixed typos.

+ 2 - 1
mcs/class/System.Web/System.Web/HttpServerUtility.cs

@@ -46,6 +46,7 @@ using System.Collections.Specialized;
 using System.IO;
 using System.Text;
 using System.Web.Hosting;
+using System.Web.Util;
 
 namespace System.Web
 {
@@ -199,7 +200,7 @@ namespace System.Web
 
 			HttpRequest request = _Context.Request;
 			string oldFilePath = request.FilePath;
-			request.SetFilePath (path);
+			request.SetFilePath (UrlUtils.Combine (_Context.Request.BaseVirtualDir, path));
 			string oldQuery = request.QueryStringRaw;
 			
 			if (!preserveQuery)	request.QueryStringRaw = query;