mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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) {
|
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() {
|
public void RestartAppDomain() {
|
||||||
|
|||||||
Reference in New Issue
Block a user