Only put returnto parameter if needed on the from-http redirect in Special:Userlogin
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 22 Nov 2013 19:36:17 +0000 (20:36 +0100)
committerIAlex <codereview@emsenhuber.ch>
Sat, 15 Mar 2014 21:09:41 +0000 (21:09 +0000)
commitd27fcb42de130fa6fe95e8dfd37d4d271c637700
tree3425917f4f265e7b50ac67f9336f32c6b95b3fd6
parent7c314de87627c3c99cef0b83a2a9c4bd115a5a51
Only put returnto parameter if needed on the from-http redirect in Special:Userlogin

The default value of the $mReturnTo and $mReturnToQuery member variables is '',
even if they were not passed. This means that they would always be present
in the redirected URL when accessing Special:Userlogin from HTTP and HTTPS
is available.

Now the special case '' is changed to null so that they don't appear anymore
if not needed.

Change-Id: I49a085feaa49d4b2954ff280db241234d2d46258
includes/specials/SpecialUserlogin.php