wiki.techinc.nl/includes/xml
Thiemo Kreuz 47171f7b94 Don't accept empty option group names for dropdown elements
When this code parses a string that looks like this:

*
** A
** B

It creates an option group with 2 options, but the name
of the group is an empty string. This makes the OOUI
DropdownInputWidget fail later.

Since the empty group name is useless anyway, drop it. This
makes the code behave as if the parsed string looked like
this:

* A
* B

Live example for the issue:
https://el.wikipedia.org/wiki/MediaWiki:Protect-dropdown

Bug: T275125
Change-Id: I780c1be27740b0ed3b35aa569b5a528112d7238f
2021-02-19 17:04:35 +01:00
..
Xml.php Don't accept empty option group names for dropdown elements 2021-02-19 17:04:35 +01:00
XmlJsCode.php build: Updating mediawiki/mediawiki-codesniffer to 34.0.0 2020-12-07 14:55:24 +01:00
XmlSelect.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00