Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/includes/htmlform/fields/HTMLUserTextField.php b/includes/htmlform/fields/HTMLUserTextField.php
index d19c50c9f71..aada74d087f 100644
--- a/includes/htmlform/fields/HTMLUserTextField.php
+++ b/includes/htmlform/fields/HTMLUserTextField.php
@@ -67,14 +67,14 @@ class HTMLUserTextField extends HTMLTextField {
// Treat hidden users as unregistered if current user can't view them (T309894)
!( $user->isHidden() && !( $this->mParent && $this->mParent->getUser()->isAllowed( 'hideuser' ) ) )
) ) {
- return $this->msg( 'htmlform-user-not-exists', $user->getName() );
+ return $this->msg( 'htmlform-user-not-exists', wfEscapeWikiText( $user->getName() ) );
}
// check if the user account type matches the account type filter
$excludeNamed = $this->mParams['excludenamed'] ?? null;
$excludeTemp = $this->mParams['excludetemp'] ?? null;
if ( ( $excludeTemp && $user->isTemp() ) || ( $excludeNamed && $user->isNamed() ) ) {
- return $this->msg( 'htmlform-user-not-valid', $user->getName() );
+ return $this->msg( 'htmlform-user-not-valid', wfEscapeWikiText( $user->getName() ) );
}
} else {
// not a valid username
@@ -102,7 +102,7 @@ class HTMLUserTextField extends HTMLTextField {
}
}
if ( !$valid ) {
- return $this->msg( 'htmlform-user-not-valid', $value );
+ return $this->msg( 'htmlform-user-not-valid', wfEscapeWikiText( $value ) );
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:33 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227863
Default Alt Text
(1 KB)

Event Timeline