From be2614649e98d1567503aa70eafc8968c569ca83 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 25 Jun 2012 10:50:47 +0000 Subject: [PATCH] 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 --- GreenshotConfluencePlugin/ConfluencePlugin.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GreenshotConfluencePlugin/ConfluencePlugin.cs b/GreenshotConfluencePlugin/ConfluencePlugin.cs index 737536e15..42a123314 100644 --- a/GreenshotConfluencePlugin/ConfluencePlugin.cs +++ b/GreenshotConfluencePlugin/ConfluencePlugin.cs @@ -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(); if(config.IsDirty) {