Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd27ab61

Browse files
authored
Merge pull request#655 from icetiger1974/patch-1
Update moduleobject.cs
2 parentsf0f6b6b +f0c5f62 commitd27ab61

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/runtime/moduleobject.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ public static Assembly AddReference(string name)
395395
{
396396
assembly=AssemblyManager.LoadAssemblyFullPath(name);
397397
}
398+
if(System.IO.File.Exists(name))
399+
{
400+
varzone=System.Security.Policy.Zone.CreateFromUrl(name);
401+
if(zone.SecurityZone!=System.Security.SecurityZone.MyComputer)
402+
{
403+
thrownewException($"File is blocked (NTFS Security)");
404+
}
405+
}
398406
if(assembly==null)
399407
{
400408
thrownewFileNotFoundException($"Unable to find assembly '{name}'.");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp