]> granicus.if.org Git - imagemagick/commitdiff
Second effort to sanitize input string
authorCristy <urban-warrior@imagemagick.org>
Mon, 2 May 2016 14:22:56 +0000 (10:22 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 2 May 2016 14:22:56 +0000 (10:22 -0400)
MagickCore/property.c

index cddd2dc223116caa2b4927517fef25d354ad218f..57caee49ba6db86729c6e8d18b170b3d623f6beb 100644 (file)
@@ -2540,8 +2540,8 @@ static const char *GetMagickPropertyLetter(ImageInfo *image_info,
 
       static char
         whitelist[] =
-          "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_- "
-          ".@&;<>()/\\\'\":%=~`";
+          "^-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
+          "+&@#/%?=~_|!:,.;()";
 
       WarnNoImageReturn("\"%%%c\"",letter);
       (void) CopyMagickString(value,image->magick_filename,MagickPathExtent);