r102347 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102346‎ | r102347 | r102348 >
Date:23:56, 7 November 2011
Author:platonides
Status:ok
Tags:
Comment:
htmlescape user-provided HTTP_ACCEPT_LANGUAGE (although unlikely to cause any harm)
Follow-up r102205
Modified paths:
  • /trunk/tools/ToolserverI18N/public_html/demo/demo6.php (modified) (history)

Diff [purge]

Index: trunk/tools/ToolserverI18N/public_html/demo/demo6.php
@@ -51,7 +51,7 @@
5252 );
5353
5454 // GetAcceptableLanguages
55 -echo "<br />getAcceptableLanguages: (default: \$_SERVER['HTTP_ACCEPT_LANGUAGE']: {$_SERVER['HTTP_ACCEPT_LANGUAGE']}):<br />";
 55+echo "<br />getAcceptableLanguages: (default: \$_SERVER['HTTP_ACCEPT_LANGUAGE']: ", htmlspecialchars( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ), "):<br />";
5656 var_dump(
5757
5858 TsIntuitionUtil::getAcceptableLanguages( @$_SERVER['HTTP_ACCEPT_LANGUAGE'] )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102205[TsIntuition] Minor fixes in acceptableLanguages()...krinkle23:02, 6 November 2011

Status & tagging log