summaryrefslogtreecommitdiff
path: root/includes/DjVuImage.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/DjVuImage.php')
-rw-r--r--includes/DjVuImage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php
index f7297dc2..3b8a68ba 100644
--- a/includes/DjVuImage.php
+++ b/includes/DjVuImage.php
@@ -216,7 +216,8 @@ class DjVuImage {
function retrieveMetaData() {
global $wgDjvuToXML;
if ( isset( $wgDjvuToXML ) ) {
- $cmd = $wgDjvuToXML . ' --without-anno --without-text ' . $this->mFilename;
+ $cmd = $wgDjvuToXML . ' --without-anno --without-text ' .
+ wfEscapeShellArg( $this->mFilename );
$xml = wfShellExec( $cmd );
} else {
$xml = null;