mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
revert whitelist mod
This commit is contained in:
+1
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user