From: Aaron Schulz Date: Tue, 13 Mar 2012 00:05:23 +0000 (+0000) Subject: Made wfShellMaintenanceCmd() not totally broken due to excess shell escaping. X-Git-Tag: 1.31.0-rc.0~24282 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=a6a58fd0ddd2d2393863731bcc386875c3af16b9;p=lhc%2Fweb%2Fwiklou.git Made wfShellMaintenanceCmd() not totally broken due to excess shell escaping. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 2a81c9a0bc..2aebd61771 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2929,8 +2929,8 @@ function wfShellMaintenanceCmd( $script, array $parameters = array(), array $opt $cmd[] = $options['wrapper']; } $cmd[] = $script; - // Escape each parameter for shell - return implode( " ", array_map( 'wfEscapeShellArg', array_merge( $cmd, $parameters ) ) ); + // Build up the full command, shell escaping each parameter + return implode( ' ', array_merge( $cmd, array_map( 'wfEscapeShellArg', $parameters ) ) ); } /**