wiki.techinc.nl/includes/skins
Timo Tijhof 77cdf1919a WatchAction: Require POST for index.php action=watch
The GET variant was already rarely used because our frontend enchances these links
with a click handler that uses AJAX to make a POST request to the API.
The index.php url, nor its token, were used for the majority of users.

Simplify this by stripping the 'token' query from these urls and requiring a POST
request for index.php?action=watch and unwatch.

* FormAction: Actually set a proper '<form action>' instead of letting HTMLForm
  default to a confusing title path (e.g. /wiki/Pagename). Article path should
  not be used for POST requests.

* WatchAction: Group all FormAction-related methods together.

* WatchAction: Make token consistent with other actions now that it is POST-only
  (no "stronger" salt containing the page title).

* Remove ununsed mediawiki.page.startup dependency from mediawiki.page.watch.ajax.

* WatchAction: If accessed over GET directly (e.g. for users without javascript)
  display a confirmation form that submits the token. Similar to PurgeAction.

Change-Id: I504f457e68a133bcfc418cff13b838080fec1008
2015-09-28 15:21:12 -07:00
..
BaseTemplate.php
MediaWikiI18N.php
QuickTemplate.php
Skin.php Merge "Extend Title check in Skin for titles without associated titles" 2015-09-18 01:39:13 +00:00
SkinApi.php
SkinApiTemplate.php
SkinException.php
SkinFactory.php
SkinFallback.php
SkinFallbackTemplate.php
SkinTemplate.php WatchAction: Require POST for index.php action=watch 2015-09-28 15:21:12 -07:00