Remove non-ASCII characters from attachment filenames

This commit is contained in:
2024-08-23 15:59:55 +02:00
parent 318b1cb1a2
commit a150f3bae7
+4
View File
@@ -28555,6 +28555,10 @@ void decode_post(char *logbook, LOGBOOK *lbs, char *string, const char *boundary
show_error(str);
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 */