Merge pull request #194 from stephen-turner/CA-144950

CA-144950 Accept loading resource strings downloaded from the internet
This commit is contained in:
Gabor Apati-Nagy 2014-09-02 17:42:10 +01:00
commit 018c0b2dc2

View File

@ -214,7 +214,12 @@ namespace XenAdmin.Plugins
{
if (File.Exists(resources))
{
return new ResourceManager(Name, Assembly.LoadFile(resources));
// We load this "unsafely" because of CA-144950: the plugin is almost certainly
// downloaded from the web and won't install without this. I considered adding
// a confirmation step, but as all we do with the resources is to extract some
// strings, there is no security implication. (This doesn't affect security
// confirmations on programs called by the plugin).
return new ResourceManager(Name, Assembly.UnsafeLoadFrom(resources));
}
}
catch (Exception e)