Reject usernames with # as user-type API parameters
authorGergő Tisza <gtisza@wikimedia.org>
Sat, 16 Apr 2016 17:45:39 +0000 (17:45 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Sat, 16 Apr 2016 17:45:39 +0000 (17:45 +0000)
commitdb8b70fb31850fdd5e6f67bce5a7cf5f9aaaf4af
tree0c42338b3289caceb46d46203f87aa5e4bf1eee8
parentbc4e07b6f63b0865a14aef981366a79d10329c87
Reject usernames with # as user-type API parameters

Th API handles parameters of type 'user' as page titles, which resulted
in silently dropping # characters and anything following them.
Reject such usernames explicitly instead.

Bug: T132852
Change-Id: Iba8061b20d5e25de80ff30d09eb53939c97cdaac
includes/api/ApiBase.php