-
Bug
-
Resolution: Fixed
-
Critical
-
2.3.4, 2.4.1
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
The API is:
Return Values: The normalized string or NULL if an error occurred.
(See http://php.net/manual/en/normalizer.normalize.php and https://bugs.php.net/bug.php?id=64090)
So, if something goes wrong, as it did in https://moodle.org/mod/forum/discuss.php?d=220722, then the input data gets eaten.
The code needs to be changed to check for the NULL return value, and in that case output a debugging message, and the use the unmodified string.