MDL-72762 backup: Accept empty and whitespace-only UI labels.
commitd6984b7616de241a84ee5efdafd1e3628c7483dd
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 7 Feb 2022 14:48:42 +0000 (7 15:48 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 11 Feb 2022 22:50:41 +0000 (11 23:50 +0100)
tree2c1eac2af402aa184b5049f21b834d8f67448710
parent6994e82281c4cbfbde52d573c91284bbffa79840
MDL-72762 backup: Accept empty and whitespace-only UI labels.

This was causing problems when sections or activity names where
set to be empty or whitespace-only, with the PARAM_CLEANHTML
leading to exception.

Now they are supported and handled like &nbsp; (0xc2a0) to
allow the process to continue.

Added a few extra tests to confirm the behaviour.
backup/upgrade.txt
backup/util/ui/backup_ui_setting.class.php
backup/util/ui/tests/base_setting_ui_test.php