wiki.techinc.nl/tests/phpunit/unit
Máté Szabó b99dcc23bc parser: Gracefully handle invalid ParsoidRenderID keys
Why:

- ParsoidRenderID::newFromKey() validates incoming keys and throws an
  InvalidArgumentException if a required key component was missing.
- It does so by eagerly destructuring the return value of explode(),
  which causes a PHP Notice for invalid inputs as the expected offsets
  won't exist then.

What:

- Check the count of key parts before destructuring.
- Add unit tests.

Bug: T385567
Change-Id: I1d936ae038f85ffa2e5d1d3d8a75fdc75e4c8ef8
(cherry picked from commit eec130925c081c2da1c475f9a9ce719e6838ca51)
2025-02-04 14:54:31 +00:00
..
documentation
includes parser: Gracefully handle invalid ParsoidRenderID keys 2025-02-04 14:54:31 +00:00
languages tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
maintenance tests: Use namespaced classes 2024-10-21 18:53:02 +02:00
tests REST: validate JSON in tests 2024-09-20 15:42:32 +00:00