]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 6 Jan 2015 00:54:19 +0000 (00:54 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 6 Jan 2015 00:54:19 +0000 (00:54 +0000)
MagickCore/property.c

index b6f246bdba4ccb08b83d263d1642fd3d9d99a8c6..62acfee19ea443ff0ff51b905074bda3856e8d6a 100644 (file)
@@ -3271,8 +3271,8 @@ MagickExport char *InterpretImageProperties(ImageInfo *image_info,
   if (*p == '@') {
      p++;
      if (*p != '-' && IfMagickFalse(IsPathAccessible(p)) ) {
-       (void) ThrowMagickException(exception,GetMagickModule(),
-           OptionError,"UnableToAccessPath","%s",p);
+       (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
+         "UnableToAccessPath","%s",p);
        return((char *) NULL);
      }
      return(FileToString(p,~0UL,exception));
@@ -3338,13 +3338,12 @@ MagickExport char *InterpretImageProperties(ImageInfo *image_info,
     /*
       Doubled Percent - or percent at end of string
     */
-    if ( *p == '\0' )
-       p--;
-    if ( *p == '%' ) {
+    if ((*p == '\0') || (*p == '\'') || (*p == '"'))
+      p--;
+    if (*p == '%') {
         *q++='%';
         continue;
       }
-
     /*
       Single letter escapes  %c
     */