From b378be4dd64744cbaff7fcf2c7a5188095b294cf Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 11 Apr 2010 20:47:41 +0000 Subject: [PATCH] Follow up r64936. Even better, provide the bug number and imagemagick doc page. --- includes/media/Bitmap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/media/Bitmap.php b/includes/media/Bitmap.php index 1f390bbcce..aada9c5b99 100644 --- a/includes/media/Bitmap.php +++ b/includes/media/Bitmap.php @@ -158,7 +158,8 @@ class BitmapHandler extends ImageHandler { // a pixel. " -thumbnail " . wfEscapeShellArg( "{$physicalWidth}x{$physicalHeight}!" ) . // Add the source url as a comment to the thumb. A % is an - // escape character in ImageMagick, so needs escaping + // escape character in ImageMagick, so needs escaping (bug 23148) + // http://www.imagemagick.org/script/escape.php?ImageMagick=i766ho1om315scce8eh75efjc6 " -set comment " . wfEscapeShellArg( str_replace( '%', '%%', $descriptionUrl ) ) . " -depth 8 $sharpen " . wfEscapeShellArg( $dstPath ) . " 2>&1"; -- 2.20.1