From: umherirrender Date: Tue, 27 Jan 2015 20:35:42 +0000 (+0100) Subject: Escape return value from Skin::getUndeleteLink X-Git-Tag: 1.31.0-rc.0~12581 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=0910b484aa4c973854e5b738cf140b9a111db99f;p=lhc%2Fweb%2Fwiklou.git Escape return value from Skin::getUndeleteLink Bug: T85864 Change-Id: I7a5dfc8ecd2f84da0dce3e1357af462a3c0da23f --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 752387b592..6cc139bfb5 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -650,7 +650,7 @@ abstract class Skin extends ContextSource { } /** - * @return string + * @return string HTML */ function getUndeleteLink() { $action = $this->getRequest()->getVal( 'action', 'view' ); @@ -670,7 +670,7 @@ abstract class Skin extends ContextSource { Linker::linkKnown( SpecialPage::getTitleFor( 'Undelete', $this->getTitle()->getPrefixedDBkey() ), $this->msg( 'restorelink' )->numParams( $n )->escaped() ) - )->text(); + )->escaped(); } }