Prohibit '+', '/', '=' or '\' in attachment name

SVN revision: 2081
This commit is contained in:
Stefan Ritt 2008-03-21 16:12:52 +00:00
parent aa60682437
commit 176d953476

View File

@ -25893,7 +25893,7 @@ void decode_post(char *logbook, LOGBOOK * lbs, const char *string, const char *b
if (verbose) if (verbose)
eprintf("decode_post: Found attachment %s\n", file_name); eprintf("decode_post: Found attachment %s\n", file_name);
/* check filename for invalid characters */ /* check filename for invalid characters */
if (strpbrk(file_name, ",;")) { if (strpbrk(file_name, ",;+=/\\")) {
strencode2(str2, file_name, sizeof(str2)); strencode2(str2, file_name, sizeof(str2));
sprintf(str, "Error: Filename \"%s\" contains invalid character", str2); sprintf(str, "Error: Filename \"%s\" contains invalid character", str2);
show_error(str); show_error(str);