Author: gonzalo
Date: 2006-11-30 15:39:00 -0500 (Thu, 30 Nov 2006)
New Revision: 68776
Modified:
trunk/mcs/class/System.Web/System.Web/ChangeLog
trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
Log:
2006-11-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* HttpRequest.cs: physical path comes from GetFilePathTranslated to
avoid trimming in HttpRequest.MapPath.
Modified: trunk/mcs/class/System.Web/System.Web/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-11-30 20:30:53 UTC
(rev 68775)
+++ trunk/mcs/class/System.Web/System.Web/ChangeLog 2006-11-30 20:39:00 UTC
(rev 68776)
@@ -1,3 +1,8 @@
+2006-11-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * HttpRequest.cs: physical path comes from GetFilePathTranslated to
+ avoid trimming in HttpRequest.MapPath.
+
2006-11-29 Marek Habersack <[EMAIL PROTECTED]>
* HttpApplication.cs: Make use of the handler stack implemented
Modified: trunk/mcs/class/System.Web/System.Web/HttpRequest.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpRequest.cs 2006-11-30
20:30:53 UTC (rev 68775)
+++ trunk/mcs/class/System.Web/System.Web/HttpRequest.cs 2006-11-30
20:39:00 UTC (rev 68776)
@@ -923,8 +923,10 @@
if (worker_request == null)
return String.Empty; // don't check
security with an empty string!
- if (physical_path == null)
- physical_path = MapPath
(CurrentExecutionFilePath);
+ if (physical_path == null) {
+ // Don't call HttpRequest.MapPath here,
as that one *trims* the input
+ physical_path =
worker_request.GetFilePathTranslated ();
+ }
if (SecurityManager.SecurityEnabled) {
new FileIOPermission
(FileIOPermissionAccess.PathDiscovery, physical_path).Demand ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches