From 176d953476cdae56e5e8f44b84ec4b0e2284c8f8 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 21 Mar 2008 16:12:52 +0000 Subject: [PATCH] Prohibit '+', '/', '=' or '\' in attachment name SVN revision: 2081 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 3542920f..9988991e 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -25893,7 +25893,7 @@ void decode_post(char *logbook, LOGBOOK * lbs, const char *string, const char *b if (verbose) eprintf("decode_post: Found attachment %s\n", file_name); /* check filename for invalid characters */ - if (strpbrk(file_name, ",;")) { + if (strpbrk(file_name, ",;+=/\\")) { strencode2(str2, file_name, sizeof(str2)); sprintf(str, "Error: Filename \"%s\" contains invalid character", str2); show_error(str);