Fixed problem with attachment submits on edit

SVN revision: 1096
This commit is contained in:
Stefan Ritt 2004-09-28 23:02:23 +00:00
parent 8c9f251438
commit 6a67c0a734

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.487 2004/09/28 23:02:23 midas
Fixed problem with attachment submits on edit
Revision 1.486 2004/09/24 20:49:16 midas Revision 1.486 2004/09/24 20:49:16 midas
Show revision on startup Show revision on startup
@ -19294,7 +19297,7 @@ void decode_post(LOGBOOK * lbs, char *string, char *boundary, int length)
} while (TRUE); } while (TRUE);
/* check attachment size */ /* check attachment size */
if ((int) (p - string) == 0) { if (file_name[0] && (int) (p - string) == 0) {
sprintf(str, loc("Attachment file <b>\"%s\"</b> empty or not found"), file_name); sprintf(str, loc("Attachment file <b>\"%s\"</b> empty or not found"), file_name);
show_error(str); show_error(str);
return; return;