Skip to content

Commit add127a

Browse files
authored
Merge pull request pythonnet#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

Lines changed: 0 additions & 8 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy