Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/217005

Change subject: Fix non-parsed captcha help message
......................................................................

Fix non-parsed captcha help message

* Explicitly parse the help message
* Don't escape the contents of the message

Bug: T101463
Change-Id: Ie50206b8296d65eba14fd827a9a18ced550f36e5
---
M FancyCaptcha/FancyCaptcha.class.php
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit 
refs/changes/05/217005/1

diff --git a/FancyCaptcha/FancyCaptcha.class.php 
b/FancyCaptcha/FancyCaptcha.class.php
index 0de148c..64c15ad 100755
--- a/FancyCaptcha/FancyCaptcha.class.php
+++ b/FancyCaptcha/FancyCaptcha.class.php
@@ -143,9 +143,10 @@
                                )
                        ); // tab in before the edit textarea
                        if ( $this->action == 'usercreate' ) {
-                               $form .= HTML::element( 'small',array(
+                               // use raw element, because the message can 
contain links or some other html
+                               $form .= HTML::rawelement( 'small',array(
                                                'class' => 
'mw-createacct-captcha-assisted'
-                                       ), wfMessage( 
'createacct-imgcaptcha-help' )
+                                       ), wfMessage( 
'createacct-imgcaptcha-help' )->parse()
                                );
                        }
                        $form .= Html::element( 'input', array(

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie50206b8296d65eba14fd827a9a18ced550f36e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to