Escape extra input messages on Special:UserLogin/signup
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 29 Jan 2015 20:45:23 +0000 (21:45 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 26 Feb 2015 05:49:22 +0000 (05:49 +0000)
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

includes/templates/Usercreate.php

index 43bab0e..dc9da63 100644 (file)
@@ -218,7 +218,7 @@ class UsercreateTemplate extends BaseTemplate {
                                                                                echo 'checked="checked"';
                                                                        } ?>
                                                                ><label for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>">
-                                                                       <?php $this->msgHtml( $inputItem['msg'] ); ?>
+                                                                       <?php $this->msg( $inputItem['msg'] ); ?>
                                                                </label>
                                                        </div>
                                                <?php