Index: trunk/phase3/includes/media/Bitmap.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | // or ImageMagick may decide your ratio is wrong and slice off |
159 | 159 | // a pixel. |
160 | 160 | " -thumbnail " . wfEscapeShellArg( "{$physicalWidth}x{$physicalHeight}!" ) . |
161 | | - " -set comment " . wfEscapeShellArg( "{$descriptionUrl}" ) . |
| 161 | + " -set comment " . wfEscapeShellArg( str_replace( '%', '%%', $descriptionUrl ) ) . |
162 | 162 | " -depth 8 $sharpen " . |
163 | 163 | wfEscapeShellArg($dstPath) . " 2>&1"; |
164 | 164 | wfDebug( __METHOD__.": running ImageMagick: $cmd\n"); |