r114325 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114324‎ | r114325 | r114326 >
Date:23:01, 20 March 2012
Author:dantman
Status:ok
Tags:
Comment:
Backport r114324 to 1.19 so we don't end up releasing a version of MediaWiki with an open router.php.
Modified paths:
  • /branches/REL1_19/phase3/maintenance/dev/includes/router.php (modified) (history)

Diff [purge]

Index: branches/REL1_19/phase3/maintenance/dev/includes/router.php
@@ -3,6 +3,10 @@
44 # Router for the php cli-server built-in webserver
55 # http://ca2.php.net/manual/en/features.commandline.webserver.php
66
 7+if ( php_sapi_name() != 'cli-server' ) {
 8+ die( "This script can only be run by php's cli-server sapi." );
 9+}
 10+
711 ini_set('display_errors', 1);
812 error_reporting(E_ALL);
913

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114324Security paranoia, reject requests to router.php that aren't from the cli-ser...dantman22:58, 20 March 2012

Status & tagging log