diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 00:48:38 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 00:48:38 +0400 |
commit | bd25692de9765d1675d15e010c032d888c4ee00c (patch) | |
tree | f81dfb9c088c67524608b93cd98c28561064ba5c /mcs/class/System.Web | |
parent | 74e7acf7b78575a1bc742da1b4f9bf362841ed5b (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=/branches/mono-1-0/mcs/; revision=32671
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 c783b045319..c7b5b3463cd 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-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com> * HttpApplication.cs: the file not found might be a dependency. 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; |