mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Medium Trust: Avoiding getName() FileIOPermission issue in isAssemblyLoaded method by checking against the fullname.
--HG-- branch : dev
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.Environment {
|
||||
}
|
||||
|
||||
public bool IsAssemblyLoaded(string name) {
|
||||
return AppDomain.CurrentDomain.GetAssemblies().Any(a => a.GetName().Name == name);
|
||||
return AppDomain.CurrentDomain.GetAssemblies().Any(a => a.FullName.Contains(name));
|
||||
}
|
||||
|
||||
public void RestartAppDomain() {
|
||||
|
||||
Reference in New Issue
Block a user