Index: trunk/phase3/includes/Math.php |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | return $this->_error( 'math_notexvc' ); |
60 | 60 | } |
61 | 61 | $cmd = $wgTexvc . ' ' . |
62 | | - escapeshellarg( $wgTmpDirectory ).' '. |
63 | | - escapeshellarg( $wgTmpDirectory ).' '. |
64 | | - escapeshellarg( $this->tex ).' '. |
65 | | - escapeshellarg( $wgInputEncoding ); |
| 62 | + wfEscapeShellArg( $wgTmpDirectory ).' '. |
| 63 | + wfEscapeShellArg( $wgTmpDirectory ).' '. |
| 64 | + wfEscapeShellArg( $this->tex ).' '. |
| 65 | + wfEscapeShellArg( $wgInputEncoding ); |
66 | 66 | |
67 | 67 | if ( wfIsWindows() ) { |
68 | 68 | # Invoke it within cygwin sh, because texvc expects sh features in its default shell |
69 | | - $cmd = 'sh -c ' . wfEscapeShellArg( $cmd ); |
| 69 | + $cmd = 'sh -c ' . wfwfEscapeShellArg( $cmd ); |
70 | 70 | } |
71 | 71 | |
72 | 72 | wfDebug( "TeX: $cmd\n" ); |