Special:Search: Remove token from URL when saving settings
authorKevin Israel <pleasestand@live.com>
Fri, 4 Jul 2014 18:36:00 +0000 (14:36 -0400)
committerNemo bis <federicoleva@tiscali.it>
Tue, 29 Jul 2014 23:49:01 +0000 (23:49 +0000)
commit1d2c770a9e0a427085e52e7e535eadc032ee1faf
tree44c015f5ab7a94ede07972352079c1a12ff57b04
parenta7de863d3aeebee0a7073fb044c567fee8b774a1
Special:Search: Remove token from URL when saving settings

When JS is enabled, use POST/Redirect/GET to make unintentional
setting changes less likely. (Otherwise, we have to use GET to avoid
breaking things such as Firefox's "Add a Keyword for this Search",
though we can still redirect.)

Also use the checkbox field for the token so the token is only sent
when saving settings (and not shown otherwise).

Bug: 68827
Change-Id: I869e554d2a207ff06e2f8d9667752111e2fa2ea1
includes/specials/SpecialSearch.php
resources/src/mediawiki.special/mediawiki.special.search.js