From: Max Semenik Date: Fri, 12 Nov 2010 18:47:33 +0000 (+0000) Subject: Fix for r74950: use wfEscapeShellArg() X-Git-Tag: 1.31.0-rc.0~33912 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=13353d931624ac10d0a01ea1fd905efe9d487ab1;p=lhc%2Fweb%2Fwiklou.git Fix for r74950: use wfEscapeShellArg() --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 86444a543e..c575b152a3 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -890,10 +890,7 @@ abstract class Installer { return $command; } - if ( wfIsWindows() ) { - $command = "\"$command\""; - } - $file = str_replace( '$1', $command, $versionInfo[0] ); + $file = str_replace( '$1', wfEscapeShellArg( $command ), $versionInfo[0] ); if ( strstr( wfShellExec( $file ), $versionInfo[1] ) !== false ) { return $command; }