mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
2b32f15c8c
The information read from the …cite-tool-definition.json files is effectively user input, even if only interface administrators can edit it. Usually we carefully validate user input. But as of now this code starts failing with all kinds of uncatched errors. * An entry with no name, an empty name, or a name that's not a string will cause all kinds of undefined behavior. * An entry with an empty title results in an invisible button. * A missing message results in a technical <…> placeholder, even if the name is usually a sensible fallback. Note that hard-coding titles as plain text strings in the ….json file was already possible. Change-Id: Iddcedbe859e86ac4c3f79a53d36237daff86c0db |
||
---|---|---|
.. | ||
parser | ||
phpunit |