From 6988ca0c355e1604b0c490c93acac31d3298f003 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 20 Jul 2009 02:04:54 +0000 Subject: [PATCH] Extra quotes are breaking wfShellExecute() for me...need to look into this more to see what changed (PHP or cmd?) --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 66cc3ecbf3..30bb00ac01 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2266,7 +2266,7 @@ function wfShellExec( $cmd, &$retval=null ) { } elseif ( php_uname( 's' ) == 'Windows NT' ) { # This is a hack to work around PHP's flawed invocation of cmd.exe # http://news.php.net/php.internals/21796 - $cmd = '"' . $cmd . '"'; + $cmd = '"' . $cmd . '"'; // FIXME: breaking Vista sp2/PHP 5.2.9(2) } wfDebug( "wfShellExec: $cmd\n" ); -- 2.20.1