mediawiki-extensions-Templa.../includes
Thiemo Kreuz c355a8fac4 More strict validation of InterfaceTexts
This fixes parts of a TODO in the code. Specifically:
* When an InterfaceText is an object, it can not be any object,
  but must be an stdClass.
* It can't be empty.
* Language codes must be non-empty strings.
* Values must be strings.

I'm intentionally not adding more validation for the language
codes, as this needs discussion (what values should be allowed?),
and can potentially break existing pages.

Same for empty strings. This can easily happen when users
manually create a <templatedata> tag and copy-paste pieces that
are meant to be filled in later. Empty strings are not really
invalid (again, this needs discussion), but might be something a
client want's to ignore.

Change-Id: I0facaa08cffe5a5a038423a58d55bc90a40b2d75
2020-08-19 15:29:55 +02:00
..
api build: Updating composer dependencies 2020-01-30 12:25:48 +00:00
TemplateDataBlob.php More strict validation of InterfaceTexts 2020-08-19 15:29:55 +02:00
TemplateDataCompressedBlob.php Fix PSR12.Properties.ConstantVisibility.NotFound 2020-05-20 01:06:40 +01:00
TemplateDataHooks.php Use QUnitTestModule instead of deprecated ResourceLoaderTestModules 2020-05-11 19:45:10 +00:00