From: Platonides Date: Wed, 3 Mar 2010 18:18:15 +0000 (+0000) Subject: Escape the caret under Windows, since that's a special character for cmd shell. X-Git-Tag: 1.31.0-rc.0~37564 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=0f13a6f10ba210af0271d5147e060b6a594eafe1;p=lhc%2Fweb%2Fwiklou.git Escape the caret under Windows, since that's a special character for cmd shell. Bug 13518 - does not work (wrong shell escaping under Windows) --- diff --git a/includes/Math.php b/includes/Math.php index 8cf9b8d897..af0a64aae4 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -67,7 +67,7 @@ class MathRenderer { if ( wfIsWindows() ) { # Invoke it within cygwin sh, because texvc expects sh features in its default shell - $cmd = 'sh -c ' . wfEscapeShellArg( $cmd ); + $cmd = 'sh -c ' . wfEscapeShellArg( str_replace( "^", "^^", $cmd ) ); } wfDebug( "TeX: $cmd\n" );