| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 19d854c commit 7dde536
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -395,6 +395,14 @@ public static Assembly AddReference(string name) | |||
| 395 | 395 | { | |
| 396 | 396 | assembly = AssemblyManager.LoadAssemblyFullPath(name); | |
| 397 | 397 | } | |
| 398 | + if (System.IO.File.Exists(name)) | ||
| 399 | + { | ||
| 400 | + var zone = System.Security.Policy.Zone.CreateFromUrl(name); | ||
| 401 | + if (zone.SecurityZone != System.Security.SecurityZone.MyComputer) | ||
| 402 | + { | ||
| 403 | + throw new Exception($"File is blocked (NTFS Security)"); | ||
| 404 | + } | ||
| 405 | + } | ||
| 398 | 406 | if (assembly == null) | |
| 399 | 407 | { | |
| 400 | 408 | throw new FileNotFoundException($"Unable to find assembly '{name}'."); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments