use wfEscapeShellArg instead of escapeshellarg on the off chance this will ever have...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Jan 2007 09:12:11 +0000 (09:12 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Jan 2007 09:12:11 +0000 (09:12 +0000)
includes/DjVuImage.php

index a0a7305..7637b32 100644 (file)
@@ -221,7 +221,8 @@ class DjVuImage {
        function retrieveMetaData() {
                global $wgDjvuToXML;
                if ( isset( $wgDjvuToXML ) ) {
-                       $cmd = $wgDjvuToXML . ' --without-anno --without-text ' . escapeshellarg( $this->mFilename );
+                       $cmd = $wgDjvuToXML . ' --without-anno --without-text ' .
+                               wfEscapeShellArg( $this->mFilename );
                        $xml = wfShellExec( $cmd );
                } else {
                        $xml = null;