Follow up r64936. Even better, provide the bug number and imagemagick doc page.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 11 Apr 2010 20:47:41 +0000 (20:47 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 11 Apr 2010 20:47:41 +0000 (20:47 +0000)
includes/media/Bitmap.php

index 1f390bb..aada9c5 100644 (file)
@@ -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";