diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 00:44:07 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 00:44:07 +0400 |
commit | b5a43befeb9131fa93bf0209e6f73114defffeae (patch) | |
tree | 45a9da432f26b50f57e259b7879c248aeb85a4eb /mcs/class/System.Web | |
parent | 74823b2d8e2a68a1825c72112b1e27c6b3ab672d (diff) |
2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpServerUtility.cs: ensure we have a full virtual path for the
request being executed.
svn path=/trunk/mcs/; revision=32669
Diffstat (limited to 'mcs/class/System.Web')
-rw-r--r-- | mcs/class/System.Web/System.Web/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Web/System.Web/HttpServerUtility.cs | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog index 9ab9a7d4a30..7ed8a585f54 100644 --- a/mcs/class/System.Web/System.Web/ChangeLog +++ b/mcs/class/System.Web/System.Web/ChangeLog @@ -1,3 +1,8 @@ +2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * HttpServerUtility.cs: ensure we have a full virtual path for the + request being executed. + 2004-08-02 Duncan Mak <duncan@ximian.com> * ApplicationShutdownReason.cs: Fixed typos. diff --git a/mcs/class/System.Web/System.Web/HttpServerUtility.cs b/mcs/class/System.Web/System.Web/HttpServerUtility.cs index 5fb510baf46..29022db8253 100644 --- a/mcs/class/System.Web/System.Web/HttpServerUtility.cs +++ b/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; |