aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorHéctor Arroyo <hector.arroyo@wikimedia.org>2025-03-27 16:25:04 +0100
committerHéctor Arroyo <hector.arroyo@wikimedia.org>2025-04-03 14:33:04 +0200
commit9e3bacf7626a7f66a8161b426b3e902b079776c5 (patch)
treea2072d8b5e28133c661d169d8f0dd9476861440e /docker-compose.yml
parenta476989679cd134df14410e500c5f1285050583b (diff)
downloadmediawikicore-9e3bacf7626a7f66a8161b426b3e902b079776c5.tar.gz
mediawikicore-9e3bacf7626a7f66a8161b426b3e902b079776c5.zip
globalcontributions: Tolerate trailing spaces on special:contributions
Why: - When accessing Special:GlobalContributions, if the target to look for ends with a whitespace, the page returns no results, showing an error stating that the target is not a valid user name instead. To test it, you can provide a target ending with a whitespace in the URL, like ?title=Special:GlobalContributions&target=172.22.0.1+&namespace=all (note the plus sign at the end of the target). - When accessing the page, different code paths seem to expect having the user name provided in different ways (reading it from the request itself, getting it passed as a value, or reading it from the controller's $opts attribute). What: - Cleanup the target before the actual logic for the contributions special pages starts, making all contributions pages (including global contributions) read the user name after stripping the leading and trailing whitespaces, if any. Bug: T378279 Change-Id: I9f6a0d70d2d967cf5ec33c77bffa89c90fb81e25
Diffstat (limited to 'docker-compose.yml')
0 files changed, 0 insertions, 0 deletions