Skip to content

Commit add127a

Browse files
authored
Merge pull request #842 from pythonnet/revert-655-patch-1
Revert zone check for assembly loading
2 parents 501cbbe + c0f3886 commit add127a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/runtime/moduleobject.cs

-8
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,6 @@ public static Assembly AddReference(string name)
413413
{
414414
assembly = AssemblyManager.LoadAssemblyFullPath(name);
415415
}
416-
if (System.IO.File.Exists(name))
417-
{
418-
var zone = System.Security.Policy.Zone.CreateFromUrl(name);
419-
if (zone.SecurityZone != System.Security.SecurityZone.MyComputer)
420-
{
421-
throw new Exception($"File is blocked (NTFS Security)");
422-
}
423-
}
424416
if (assembly == null)
425417
{
426418
throw new FileNotFoundException($"Unable to find assembly '{name}'.");

0 commit comments

Comments
 (0)