mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Prohibit '+', '/', '=' or '\' in attachment name
SVN revision: 2081
This commit is contained in:
parent
aa60682437
commit
176d953476
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user