From ffb8da39c9063ff64681dd1e5407116a64e2df07 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 16 Nov 2020 23:18:02 +0000 Subject: [PATCH] revert whitelist mod --- MagickCore/string.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MagickCore/string.c b/MagickCore/string.c index 7a8f8a9198..cb5bce2659 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -1588,15 +1588,9 @@ MagickExport char *SanitizeString(const char *source) *p; static char -#if defined(MAGICKCORE_WINDOWS_SUPPORT) whitelist[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 " - "$-_.+!;*(),{}|^~[]`\'><#%/?:@&="; -#else - whitelist[] = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 " - "$-_.+!;*(),{}|\\^~[]`\"><#%/?:@&="; -#endif + "$-_.+!*'(),{}|\\^~[]`\"><#%;/?:@&="; sanitize_source=AcquireString(source); p=sanitize_source;