Added Confluence V2 support, preferring this and using fall back to V1 if this doesn't work at the login.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1944 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-07-12 14:11:47 +00:00
commit 5c038ed1da
4 changed files with 23 additions and 11 deletions

View file

@ -38,7 +38,7 @@ namespace GreenshotConfluencePlugin {
List<Confluence.Page> pages = new List<Confluence.Page>();
Regex pageIdRegex = new Regex(@"pageId=(\d+)");
Regex spacePageRegex = new Regex(@"\/display\/([^\/]+)\/([^#]+)");
foreach(string browserurl in GetBrowserUrls()) {
foreach(string browserurl in GetBrowserUrls()) {
string url = null;
try {
url = Uri.UnescapeDataString(browserurl).Replace("+", " ");