From e6dc4bc95e14cdf316f33006f3afa772b4a339fe Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 17 Jan 2007 09:12:11 +0000 Subject: [PATCH] use wfEscapeShellArg instead of escapeshellarg on the off chance this will ever have to run on windows, and wrap the line nicer for us 80-column-lovers --- includes/DjVuImage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index a0a73057ea..7637b32fea 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -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; -- 2.20.1