From fdedf7c61027f5dcbe9a29f4af9998368645d1b8 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 12 Sep 2008 15:10:27 +0000 Subject: [PATCH] Use wfEscapeShellArg() since it works on windows (bug 13518) --- includes/Math.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/Math.php b/includes/Math.php index ca225d6c22..f6c869c60e 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -58,14 +58,14 @@ class MathRenderer { return $this->_error( 'math_notexvc' ); } $cmd = $wgTexvc . ' ' . - escapeshellarg( $wgTmpDirectory ).' '. - escapeshellarg( $wgTmpDirectory ).' '. - escapeshellarg( $this->tex ).' '. - escapeshellarg( $wgInputEncoding ); + wfEscapeShellArg( $wgTmpDirectory ).' '. + wfEscapeShellArg( $wgTmpDirectory ).' '. + wfEscapeShellArg( $this->tex ).' '. + wfEscapeShellArg( $wgInputEncoding ); if ( wfIsWindows() ) { # Invoke it within cygwin sh, because texvc expects sh features in its default shell - $cmd = 'sh -c ' . wfEscapeShellArg( $cmd ); + $cmd = 'sh -c ' . wfwfEscapeShellArg( $cmd ); } wfDebug( "TeX: $cmd\n" ); -- 2.20.1