* HttpRequest.cs: physical path comes from GetFilePathTranslated to
avoid trimming in HttpRequest.MapPath.
svn path=/trunk/mcs/; revision=68776
+2006-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * HttpRequest.cs: physical path comes from GetFilePathTranslated to
+ avoid trimming in HttpRequest.MapPath.
+
2006-11-29 Marek Habersack <grendello@gmail.com>
* HttpApplication.cs: Make use of the handler stack implemented
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 ();