From f82a1f85dde28c01c86077299ff9440c0fb22865 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Mon, 31 May 2004 19:15:56 +0000 Subject: 2004-05-31 Gonzalo Paniagua Javier * 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 --- mcs/class/System.Web/System.Web/ChangeLog | 8 ++++++++ mcs/class/System.Web/System.Web/HttpRequest.cs | 2 ++ 2 files changed, 10 insertions(+) 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 + + * 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 * 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) -- cgit v1.2.3