diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-05-31 23:15:56 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-05-31 23:15:56 +0400 |
commit | f82a1f85dde28c01c86077299ff9440c0fb22865 (patch) | |
tree | 5e64c6e8939be434f5b9a137699b4b0636a40efa | |
parent | e3cfa1cf7cf5a957d9b734f3ee233dc8e210f642 (diff) |
2004-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
when SetFilePath is called. This way the cached values are reset and
get the right value in case someone (namely SessionStateModule +
cookieless session) changes the FilePath after the property cached its
value. Fixes bug #59364.
svn path=/trunk/mcs/; revision=28586
-rw-r--r-- | mcs/class/System.Web/System.Web/ChangeLog | 8 | ||||
-rw-r--r-- | mcs/class/System.Web/System.Web/HttpRequest.cs | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog index 801041da0c1..86e8e823ab6 100644 --- a/mcs/class/System.Web/System.Web/ChangeLog +++ b/mcs/class/System.Web/System.Web/ChangeLog @@ -1,3 +1,11 @@ +2004-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir + when SetFilePath is called. This way the cached values are reset and + get the right value in case someone (namely SessionStateModule + + cookieless session) changes the FilePath after the property cached its + value. Fixes bug #59364. + 2004-05-27 Patrik Torstensson <totte@hiddenpeaks.com> * HttpApplicationFactory.cs: Added SignalError (still todo) diff --git a/mcs/class/System.Web/System.Web/HttpRequest.cs b/mcs/class/System.Web/System.Web/HttpRequest.cs index bf390b954f3..3216c9ce5c3 100644 --- a/mcs/class/System.Web/System.Web/HttpRequest.cs +++ b/mcs/class/System.Web/System.Web/HttpRequest.cs @@ -1176,6 +1176,8 @@ namespace System.Web { internal void SetFilePath (string filePath) { _sFilePath = filePath; + _sRequestRootVirtualDir = null; + baseVirtualDir = null; } internal void SetPathInfo (string pathInfo) |