From c0f38860476fd5a8dc64614450826b8a9ae84f5c Mon Sep 17 00:00:00 2001 From: Benedikt Reinartz Date: Fri, 5 Apr 2019 09:46:36 +0200 Subject: [PATCH] Revert "Update moduleobject.cs" --- src/runtime/moduleobject.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/runtime/moduleobject.cs b/src/runtime/moduleobject.cs index 8af722d29..7a45c6c81 100644 --- a/src/runtime/moduleobject.cs +++ b/src/runtime/moduleobject.cs @@ -413,14 +413,6 @@ public static Assembly AddReference(string name) { assembly = AssemblyManager.LoadAssemblyFullPath(name); } - if (System.IO.File.Exists(name)) - { - var zone = System.Security.Policy.Zone.CreateFromUrl(name); - if (zone.SecurityZone != System.Security.SecurityZone.MyComputer) - { - throw new Exception($"File is blocked (NTFS Security)"); - } - } if (assembly == null) { throw new FileNotFoundException($"Unable to find assembly '{name}'.");