From d9c3124da49089fdd8f6f7951d3f0a2921bea628 Mon Sep 17 00:00:00 2001 From: SomeRandomDeveloper Date: Mon, 2 Jun 2025 16:29:52 -0500 Subject: [PATCH] SECURITY: Properly escape the quiz-ignore-coef system message Bug: T394612 Change-Id: I22c16616b8c502342517475683575a0220451fb3 --- templates/Setting.mustache | 2 +- tests/phpunit/QuizTest.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/Setting.mustache b/templates/Setting.mustache index 3c8cf54..b18106c 100644 --- a/templates/Setting.mustache +++ b/templates/Setting.mustache @@ -31,7 +31,7 @@ {{# isSettingOtherRow}} {{# notSimple}} - + {{/ notSimple}} {{# corrected}} diff --git a/tests/phpunit/QuizTest.php b/tests/phpunit/QuizTest.php index cea2d9b..57b52b3 100644 --- a/tests/phpunit/QuizTest.php +++ b/tests/phpunit/QuizTest.php @@ -84,7 +84,7 @@ class QuizTest extends QuizTestCase { . "\n\t\t" . '' . "\n\t" . '' . "\n\t" . '' . "\n\t\t" . '' + . 'Ignore the questions' coefficients:' . "\n\t\t" . '' . "\n\t" . '' . "\n\t" . '' . "\n\t\t\t\t\t" @@ -107,8 +107,7 @@ class QuizTest extends QuizTestCase { ' value="0"/>' . "\n\t\t" . '' . "\n\t\t" . 'Incorrect' . "\n\t" . '' . "\n\t" . '' . "\n\t\t" . - '' + '' . "\n\t\t" . '' . "\n\t\t" . '' . "\n\t\t" . -- 2.49.0