Merge "Fix unescaped i18n message use in captcha label"

This commit is contained in:
jenkins-bot 2024-11-13 11:57:19 +00:00 committed by Gerrit Code Review
commit 1e66e2afdc

View file

@ -89,8 +89,8 @@ class HTMLFancyCaptchaField extends HTMLFormField {
public function getLabel() {
// slight abuse of what getLabel() should mean; $mLabel is used for the pre-label text
// as the actual label is always the same
return $this->mParent->msg( 'captcha-label' )->text() . ' '
. $this->mParent->msg( 'fancycaptcha-captcha' )->text();
return $this->mParent->msg( 'captcha-label' )->escaped() . ' '
. $this->mParent->msg( 'fancycaptcha-captcha' )->escaped();
}
/** @inheritDoc */