r38821 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38820‎ | r38821 | r38822 >
Date:23:54, 7 August 2008
Author:aaron
Status:old
Tags:
Comment:
Use wfEscapeShellArg()
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -65,8 +65,8 @@
6666 // If a cache update is needed, do so asynchronously.
6767 // Don't trigger query while another is running.
6868 if( !$dbCache->get( $key ) && !$dbCache->get( $keySQL ) ) {
69 - $path = dirname(__FILE__).'/../maintenance/updateStats.php';
70 - exec( "php $path >! /dev/null &" );
 69+ $path = wfEscapeShellArg( dirname(__FILE__).'/../maintenance/updateStats.php' );
 70+ exec( "php $path > /dev/null &" );
7171 }
7272 }
7373

Status & tagging log