mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Allow '/' and '\' in attachment names (for "d:\file.txt")
SVN revision: 2101
This commit is contained in:
parent
b45e9ec46b
commit
6709066281
@ -25974,7 +25974,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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user