Don't use public-audience-only function
[lhc/web/wiklou.git] / includes / Math.php
index f6c869c..ca225d6 100644 (file)
@@ -58,14 +58,14 @@ class MathRenderer {
                                return $this->_error( 'math_notexvc' );
                        }
                        $cmd = $wgTexvc . ' ' .
-                                       wfEscapeShellArg( $wgTmpDirectory ).' '.
-                                       wfEscapeShellArg( $wgTmpDirectory ).' '.
-                                       wfEscapeShellArg( $this->tex ).' '.
-                                       wfEscapeShellArg( $wgInputEncoding );
+                                       escapeshellarg( $wgTmpDirectory ).' '.
+                                       escapeshellarg( $wgTmpDirectory ).' '.
+                                       escapeshellarg( $this->tex ).' '.
+                                       escapeshellarg( $wgInputEncoding );
 
                        if ( wfIsWindows() ) {
                                # Invoke it within cygwin sh, because texvc expects sh features in its default shell
-                               $cmd = 'sh -c ' . wfwfEscapeShellArg( $cmd );
+                               $cmd = 'sh -c ' . wfEscapeShellArg( $cmd );
                        }
 
                        wfDebug( "TeX: $cmd\n" );