jenkins-bot has submitted this change and it was merged.

Change subject: Escape extra input messages on Special:UserLogin/signup
......................................................................


Escape extra input messages on Special:UserLogin/signup

TitleBlacklist and AntiSpoof can register extra input fields with a own
message, this message would now be escaped to avoid use of raw html.
Messages: 'titleblacklist-override' and 'antispoof-ignore'

The messages are now handled similar to checkbox 'createaccountmail'

Bug: T85864
Change-Id: I14326c3844904560b66eb8e8eb7d36706caa47da
---
M includes/templates/Usercreate.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/templates/Usercreate.php 
b/includes/templates/Usercreate.php
index 43bab0e..dc9da63 100644
--- a/includes/templates/Usercreate.php
+++ b/includes/templates/Usercreate.php
@@ -218,7 +218,7 @@
                                                                                
echo 'checked="checked"';
                                                                        } ?>
                                                                ><label 
for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>">
-                                                                       <?php 
$this->msgHtml( $inputItem['msg'] ); ?>
+                                                                       <?php 
$this->msg( $inputItem['msg'] ); ?>
                                                                </label>
                                                        </div>
                                                <?php

-- 
To view, visit https://gerrit.wikimedia.org/r/187479
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I14326c3844904560b66eb8e8eb7d36706caa47da
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to