FormSpecialPage: Only add redirectparams for POST forms
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 18 Oct 2016 21:16:04 +0000 (14:16 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 18 Oct 2016 21:25:11 +0000 (14:25 -0700)
commiteec74de16ae1aa32ffbd3e31b7c9db7cb04045f2
treeedb25dba842b67e85805e6e9389350dde0a59f37
parent4465a9fb5a8763a394b3e1795506f939fc0a9005
FormSpecialPage: Only add redirectparams for POST forms

If the form is submitted via GET, using redirectparams doesn't make
sense, and you end up with redirect params being included in the GET
query string. And then if the form is submitted again, the
redirectparams include the previous redirectparams, and so on.

Change-Id: I9bc930e5dca557571b4658444fea6aec59c5797a
includes/specialpage/FormSpecialPage.php