wiki.techinc.nl/includes/diff
Daimona Eaytoy 95d75e831a Add first batch of taint-check annotations
These are the same as taint-check's MediaWikiSecurityCheckPlugin.php.

The notable exception is methods in WebRequest that were previously
hardcoded as returning a safe value. This was a consequence of said
methods return safe types (e.g., int, bool). Instead of adding
taint-check annotations, add return typehints instead, which let
taint-check remove any taintedness.

Fix some taint-check issues that were previously not spotted or whose
suppressions were removed in other patches.

Also fix the following bugs spotted by phan thanks to the type hints:
- SpecialExport did not have explicit handling of null $depth, and just
  returned 0 because null fails both the < and the > comparisons.
- Improve documentation of params and props in ProtectedPagesPager.
  SpecialProtectedPages can pass null $namespace and $size.
- Remove unused parameter from SpecialProtectedPages::showOptions, of
  which $ns and $size were not documented as nullable.
- Add FIXMEs in SpecialVersion about very inconsistent escaping.

Bug: T321806
Change-Id: I726f528856614c92329683a0ad8936a42e262748
2023-09-23 17:51:06 +02:00
..
Hook Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
TextDiffer Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
DifferenceEngine.php Add first batch of taint-check annotations 2023-09-23 17:51:06 +02:00
DifferenceEngineSlotDiffRenderer.php Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
IncompatibleDiffTypesException.php Improve handling of diffs between incompatible content models 2023-06-23 19:09:59 +00:00
SlotDiffRenderer.php Reorg: Move three output related classes to includes/Output/ 2023-09-05 19:36:42 +01:00
TextSlotDiffRenderer.php Infuse the inline diff toggle's layout to fix accessibility 2023-09-16 01:14:30 +02:00
UnsupportedSlotDiffRenderer.php