Steps to replicate the issue (include links if applicable):
- Make a request containing a Cookie header containing cookies used by MediaWiki with values in the form of foo[]=bar;foo[]=bar2, e.g. Cookie: cpPosIndex[]=test;cpPosIndex[]=test2
What happens?:
Various errors occur depending on what cookie(s) you passed. For instance, cpPosIndex causes an HTTP 500:
Uncaught TypeError: Argument 1 passed to Wikimedia\Rdbms\ChronologyProtector::getCPInfoFromCookieValue() must be of the type string or null, array given, called in /srv/mediawiki/php-1.43.0-wmf.2/includes/ServiceWiring.php on line 520 and defined in /srv/mediawiki/php-1.43.0-wmf.2/includes/libs/rdbms/ChronologyProtector.php:645
What should have happened instead?:
No error should have occurred.