Don't double escape $moreLink

Html::element() automatically escapes all attribute values.

Spotted by the phan-taint-check-plugin.

Change-Id: Iad90d48ccba5b7008f5869c7c9f2b280400df749
This commit is contained in:
Kunal Mehta 2018-08-25 00:59:19 -07:00
parent cfa56cdcb3
commit fc561f35cc

View file

@ -141,12 +141,12 @@ class Hooks {
$cookieWarningMessage = wfMessage( 'cookiewarning-more-link' );
if ( $cookieWarningMessage->exists() && !$cookieWarningMessage->isDisabled() ) {
return $cookieWarningMessage->escaped();
return $cookieWarningMessage->text();
}
$cookiePolicyMessage = wfMessage( 'cookie-policy-link' );
if ( $cookiePolicyMessage->exists() && !$cookiePolicyMessage->isDisabled() ) {
return $cookiePolicyMessage->escaped();
return $cookiePolicyMessage->text();
}
return null;