Forcing .NET Full-Profile check while loading the plugin, and not later. This should fix Bug #3533796, by not allowing to use a certain plugin.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1933 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-06-25 10:50:47 +00:00
parent b527eefb77
commit be2614649e

View file

@ -24,6 +24,7 @@ using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows;
using System.Web;
using Confluence;
using Greenshot.Plugin;
@ -105,6 +106,9 @@ namespace GreenshotConfluencePlugin {
host = pluginHost;
ConfluencePluginAttributes = myAttributes;
// Force exception when there is no Full Profile, this will make sure the plugin isn't loaded
HttpUtility.UrlEncode("bla");
// Register configuration (don't need the configuration itself)
config = IniConfig.GetIniSection<ConfluenceConfiguration>();
if(config.IsDirty) {