From fedce774b9bff15aa4a356715fadee957a6e8f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 11 Sep 2023 09:15:30 +0200 Subject: [PATCH] MDL-79226 questions: check for UTF-8 encoding of the import file --- question/format/aiken/format.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/question/format/aiken/format.php b/question/format/aiken/format.php index ab76310b15735..951923368bc2b 100644 --- a/question/format/aiken/format.php +++ b/question/format/aiken/format.php @@ -61,6 +61,10 @@ public function provide_export() { return true; } + public function validate_file(stored_file $file): string { + return $this->validate_is_utf8_file($file); + } + public function readquestions($lines) { $questions = array(); $question = null;