Skip to content
Permalink
Browse files

Url encode login token

Since MediaWiki 1.27.0-wmf.13, session tokens can include non-URL safe
characters.
  • Loading branch information...
bd808 committed Feb 11, 2016
1 parent 0e0eea4 commit 2da6e2383624c423b856d61d0be50dcd8a4750ce
Showing with 1 addition and 1 deletion.
  1. +1 −1 huggle/login.cpp
@@ -474,7 +474,7 @@ void Login::PerformLoginPart2(WikiSite *site)
query->IncRef();
query->Parameters = "lgname=" + QUrl::toPercentEncoding(hcfg->SystemConfig_Username)
+ "&lgpassword=" + QUrl::toPercentEncoding(hcfg->TemporaryConfig_Password)
+ "&lgtoken=" + token;
+ "&lgtoken=" + QUrl::toPercentEncoding(token);
query->UsingPOST = true;
query->Process();
}

0 comments on commit 2da6e23

Please sign in to comment.
You can’t perform that action at this time.