From 2fadd192e8032981d4d7a80f05410d832a037830 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 17 Oct 2023 12:07:15 +0200 Subject: [PATCH] fix filter password --- core/module/course/course.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 67bbab8..172a818 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -662,7 +662,7 @@ class course extends common ]); break; case self::COURSE_ENROLMENT_SELF_KEY: - if ($this->getInput('courseSwapEnrolmentKey', null, true) === $this->getData(['course', $courseId, 'enrolmentKey'])) { + if ($this->getInput('courseSwapEnrolmentKey', helper::FILTER_PASSWORD, true) === $this->getData(['course', $courseId, 'enrolmentKey'])) { $this->courseEnrolUser($courseId, $userId); // Stocker la sélection $_SESSION['ZWII_SITE_CONTENT'] = $courseId;