API: Flag "user" parameters in various modules as type 'user'
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 4 Jan 2016 18:55:26 +0000 (10:55 -0800)
committerReedy <reedy@wikimedia.org>
Sat, 9 Jan 2016 22:16:06 +0000 (22:16 +0000)
commit381a6ce691840437c6a449fe52bfd6dacb80af2d
treeb58a01090ba61235168c292935da4e835f7356e9
parent3a7d5067c72a6b50355fc752681bfb69714421b5
API: Flag "user" parameters in various modules as type 'user'

The API 'user' type accepts both user names and IP addresses, and
applies normalization but not canonicalization. We should be using this
on basically every user parameter to ensure that e.g. IPv6 usernames get
uppercased.

Bug: T122803
Change-Id: Ic67fb54061ac311e54f325b2a1a4658f43b8fef4
includes/api/ApiBase.php
includes/api/ApiBlock.php
includes/api/ApiQueryBlocks.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryUsers.php
includes/api/ApiRollback.php
includes/api/ApiUserrights.php