Lines 923-930
Link Here
|
923 |
if (worker_request == null) |
923 |
if (worker_request == null) |
924 |
return String.Empty; // don't check security with an empty string! |
924 |
return String.Empty; // don't check security with an empty string! |
925 |
|
925 |
|
926 |
if (physical_path == null) |
926 |
if (physical_path == null) { |
927 |
physical_path = MapPath (CurrentExecutionFilePath); |
927 |
// Don't call HttpRequest.MapPath here, as that one *trims* the input |
|
|
928 |
physical_path = worker_request.GetFilePathTranslated (); |
929 |
} |
928 |
|
930 |
|
929 |
if (SecurityManager.SecurityEnabled) { |
931 |
if (SecurityManager.SecurityEnabled) { |
930 |
new FileIOPermission (FileIOPermissionAccess.PathDiscovery, physical_path).Demand (); |
932 |
new FileIOPermission (FileIOPermissionAccess.PathDiscovery, physical_path).Demand (); |