From: Brion Vibber Date: Wed, 17 Jan 2007 09:12:11 +0000 (+0000) Subject: use wfEscapeShellArg instead of escapeshellarg on the off chance this will ever have... X-Git-Tag: 1.31.0-rc.0~54349 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=e6dc4bc95e14cdf316f33006f3afa772b4a339fe;p=lhc%2Fweb%2Fwiklou.git 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 --- 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;