From: Niklas Laxström Date: Fri, 22 May 2009 09:35:48 +0000 (+0000) Subject: Escaping fixes X-Git-Tag: 1.31.0-rc.0~41700 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=d3b61fea7ceef35036bee7b820b4099a74c88641;p=lhc%2Fweb%2Fwiklou.git Escaping fixes --- diff --git a/includes/Block.php b/includes/Block.php index b62fceb0aa..767e0567d8 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -826,7 +826,7 @@ class Block { * Convert a DB-encoded expiry into a real string that humans can read. * * @param $encoded_expiry String: Database encoded expiry time - * @return String + * @return Html-escaped String */ public static function formatExpiry( $encoded_expiry ) { static $msg = null; @@ -844,7 +844,7 @@ class Block { $expirystr = $msg['infiniteblock']; } else { global $wgLang; - $expiretimestr = $wgLang->timeanddate( $expiry, true ); + $expiretimestr = htmlspecialchars($wgLang->timeanddate( $expiry, true )); $expirystr = wfMsgReplaceArgs( $msg['expiringblock'], array($expiretimestr) ); } return $expirystr; diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 69eeed9073..fa1b724c66 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -176,7 +176,7 @@ class ChangesList { if( '' != $this->lastdate ) { $s .= "\n"; } - $s .= '

'.$date."

\n