X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FSvgHandler.php;h=bdda674f0db4eb738ebd97b43562e8daaefbce3c;hb=ff3c76b87c9fa981ad56f8e08d25104b561e4939;hp=4d75d0444929375c8039644bc52dd74cdbab1a01;hpb=b235c8be4ba75590871db5fe04c6a315d5008f9d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/SvgHandler.php b/includes/media/SvgHandler.php index 4d75d04449..bdda674f0d 100644 --- a/includes/media/SvgHandler.php +++ b/includes/media/SvgHandler.php @@ -20,6 +20,8 @@ * @file * @ingroup Media */ + +use MediaWiki\Shell\Shell; use Wikimedia\ScopedCallback; /** @@ -335,11 +337,11 @@ class SvgHandler extends ImageHandler { // External command $cmd = str_replace( [ '$path/', '$width', '$height', '$input', '$output' ], - [ $wgSVGConverterPath ? wfEscapeShellArg( "$wgSVGConverterPath/" ) : "", + [ $wgSVGConverterPath ? Shell::escape( "$wgSVGConverterPath/" ) : "", intval( $width ), intval( $height ), - wfEscapeShellArg( $srcPath ), - wfEscapeShellArg( $dstPath ) ], + Shell::escape( $srcPath ), + Shell::escape( $dstPath ) ], $wgSVGConverters[$wgSVGConverter] );