https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115144
Revision: 115144
Author: aaron
Date: 2012-05-06 06:45:14 +0000 (Sun, 06 May 2012)
Log Message:
-----------
HTML escaping fixes
Modified Paths:
--------------
trunk/extensions/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php
trunk/extensions/ConfirmAccount/frontend/specialpages/actions/ConfirmAccount_body.php
Modified: trunk/extensions/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php
===================================================================
--- trunk/extensions/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php
2012-05-06 06:39:26 UTC (rev 115143)
+++ trunk/extensions/ConfirmAccount/frontend/ConfirmAccountUI.hooks.php
2012-05-06 06:45:14 UTC (rev 115144)
@@ -25,9 +25,9 @@
*/
public static function setRequestLoginLinks( array &$personal_urls,
&$title ) {
if ( isset( $personal_urls['anonlogin'] ) ) {
- $personal_urls['anonlogin']['text'] = wfMsg(
'nav-login-createaccount' );
+ $personal_urls['anonlogin']['text'] = wfMsgHtml(
'nav-login-createaccount' );
} elseif ( isset( $personal_urls['login'] ) ) {
- $personal_urls['login']['text'] = wfMsg(
'nav-login-createaccount' );
+ $personal_urls['login']['text'] = wfMsgHtml(
'nav-login-createaccount' );
}
return true;
}
@@ -83,7 +83,7 @@
* @return bool
*/
public static function confirmAccountAdminLinks( &$admin_links_tree ) {
- $users_section = $admin_links_tree->getSection( wfMsg(
'adminlinks_users' ) );
+ $users_section = $admin_links_tree->getSection( wfMsgHtml(
'adminlinks_users' ) );
$extensions_row = $users_section->getRow( 'extensions' );
if ( is_null( $extensions_row ) ) {
Modified:
trunk/extensions/ConfirmAccount/frontend/specialpages/actions/ConfirmAccount_body.php
===================================================================
---
trunk/extensions/ConfirmAccount/frontend/specialpages/actions/ConfirmAccount_body.php
2012-05-06 06:39:26 UTC (rev 115143)
+++
trunk/extensions/ConfirmAccount/frontend/specialpages/actions/ConfirmAccount_body.php
2012-05-06 06:45:14 UTC (rev 115144)
@@ -681,13 +681,13 @@
}
if( $this->hasItem( 'RealName' ) ) {
$hasCV = $row->acr_filename
- ? '
<strong>'.wfMsg('confirmaccount-withcv').'</strong>'
+ ? '
<strong>'.wfMsgHtml('confirmaccount-withcv').'</strong>'
: '';
$r .=
'<tr><td><strong>'.wfMsgHtml('confirmaccount-real-q').'</strong></td><td
width=\'100%\'>' .
htmlspecialchars($row->acr_real_name) . $hasCV
. '</td></tr>';
}
$econf = $row->acr_email_authenticated
- ? ' <strong>'.wfMsg('confirmaccount-econf').'</strong>'
+ ? '
<strong>'.wfMsgHtml('confirmaccount-econf').'</strong>'
: '';
$r .=
'<tr><td><strong>'.wfMsgHtml('confirmaccount-email-q').'</strong></td><td
width=\'100%\'>' .
htmlspecialchars($row->acr_email) . $econf.'</td></tr>';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs