summaryrefslogtreecommitdiff
path: root/swext/mediawiki/src/com/sun/star/wiki/Helper.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 11:47:25 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:17 +0200
commitb58f3778095977fa0018f7d20d33347365bb799b (patch)
tree7c4ec6c0d1828db355d206393ca4e36be0596bda /swext/mediawiki/src/com/sun/star/wiki/Helper.java
parentc5fdde23ed7388861d13f6bc229fc8c722d10534 (diff)
java: use the non-deprecated constructor of URI
Specifically, org.apache.commons.httpclient.URI Change-Id: Ib1f888559e9401d5fabbe8ea0585a716d9bb5a59
Diffstat (limited to 'swext/mediawiki/src/com/sun/star/wiki/Helper.java')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index 6b4044f505ae..66d2aa263d8c 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -787,7 +787,7 @@ public class Helper
{
HostConfiguration aNewHostConfig = new HostConfiguration();
- URI aURI = new URI( aMainURL.toString() + "index.php?title=Special:Userlogin" );
+ URI aURI = new URI( aMainURL.toString() + "index.php?title=Special:Userlogin", false );
GetMethod aGetCookie = new GetMethod( aURI.getEscapedPathQuery() );
ExecuteMethod( aGetCookie, aNewHostConfig, aURI, xContext, true );
@@ -804,7 +804,7 @@ public class Helper
String sLoginToken = GetLoginToken( sLoginPage );
PostMethod aPost = new PostMethod();
- URI aPostURI = new URI( aMainURL.getPath() + "index.php?title=Special:Userlogin&action=submitlogin" );
+ URI aPostURI = new URI( aMainURL.getPath() + "index.php?title=Special:Userlogin&action=submitlogin", false );
aPost.setPath( aPostURI.getEscapedPathQuery() );
aPost.addParameter( "wpName", sWikiUser );