Skip to content

Commit

Permalink
Correct quotes around the password, the old way no longer works with …
Browse files Browse the repository at this point in the history
…version 10.00.0 of Ghostscript.
  • Loading branch information
dlemstra committed Oct 4, 2022
1 parent a9db491 commit b4da95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
sanitize_passphrase=SanitizeDelegateString(image_info->authenticate);
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
(void) FormatLocaleString(passphrase,MagickPathExtent,
"-sPDFPassword=\"%s\" ",sanitize_passphrase);
"\"-sPDFPassword=%s\" ",sanitize_passphrase);
#else
(void) FormatLocaleString(passphrase,MagickPathExtent,
"-sPDFPassword='%s' ",sanitize_passphrase);
Expand Down

0 comments on commit b4da95b

Please sign in to comment.