mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Remove non-ASCII characters from attachment filenames
This commit is contained in:
parent
318b1cb1a2
commit
a150f3bae7
@ -28555,6 +28555,10 @@ void decode_post(char *logbook, LOGBOOK *lbs, char *string, const char *boundary
|
|||||||
show_error(str);
|
show_error(str);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/* replace non-ASCII characters */
|
||||||
|
for (int i=0 ; i<strlen(file_name) ; i++)
|
||||||
|
if (file_name[i] < ' ' || file_name[i] > 'z')
|
||||||
|
file_name[i] = '_';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find next boundary */
|
/* find next boundary */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user