Fix unescaped i18n message use in captcha label

Bug: T373732
Change-Id: Ib9079feead4bfe0f1fd2c832c6cabb6eb7149534
This commit is contained in:
Gergő Tisza 2024-11-12 21:49:00 +01:00
parent c1675ff6c3
commit 42d4f55cf6
No known key found for this signature in database
GPG key ID: C34FEC97E6257F96

View file

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