Author: gonzalo
Date: 2006-12-05 11:25:30 -0500 (Tue, 05 Dec 2006)
New Revision: 69049
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
Log:
2006-12-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpRequest.cs: call MapPath on the HttpWorkerRequest so that if
FilePath is changed we get the new physical path, not the one of the
original request. Fixes bug #80152.
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-12-05 16:03:21 UTC
(rev 69048)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-12-05 16:25:30 UTC
(rev 69049)
@@ -1,3 +1,9 @@
+2006-12-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * HttpRequest.cs: call MapPath on the HttpWorkerRequest so that if
+ FilePath is changed we get the new physical path, not the one of the
+ original request. Fixes bug #80152.
+
2006-12-03 Igor Zelmanovich <[EMAIL PROTECTED]>
* HttpWriter.cs: reverted r38835.
Modified: trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpRequest.cs 2006-12-05
16:03:21 UTC (rev 69048)
+++ trunk/mcs/class/System.Web/System.Web/HttpRequest.cs 2006-12-05
16:25:30 UTC (rev 69049)
@@ -925,7 +925,7 @@
if (physical_path == null) {
// Don't call HttpRequest.MapPath here,
as that one *trims* the input
- physical_path =
worker_request.GetFilePathTranslated ();
+ physical_path = worker_request.MapPath
(FilePath);
}
if (SecurityManager.SecurityEnabled) {
@@ -1248,6 +1248,7 @@
internal void SetFilePath (string path)
{
file_path = path;
+ physical_path = null;
}
internal void SetCurrentExePath (string path)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches