Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Backport this patch here as well (from trunk/68776)

svn path=/branches/mono-1-1-18/mcs/; revision=68790
  • Loading branch information...
commit 8e924fbd43c5f458a4c05c453cbdaf5ed0e0bfdd 1 parent 6ee1677
@migueldeicaza migueldeicaza authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mcs/class/System.Web/System.Web/HttpRequest.cs
View
6 mcs/class/System.Web/System.Web/HttpRequest.cs
@@ -923,8 +923,10 @@ internal void ReleaseResources ()
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 ();
Please sign in to comment.
Something went wrong with that request. Please try again.