mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-23 13:56:53 +00:00
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:
parent
cfa56cdcb3
commit
fc561f35cc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue