Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 157288 | Differences between
and this patch

Collapse All | Expand All

(-)mcs/class/System.Web/System.Web/HttpRequest.cs (-2 / +4 lines)
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 ();

Return to bug 157288