Fixed 'append on edit' with uploads

SVN revision: 1107
This commit is contained in:
Stefan Ritt 2004-10-14 19:40:40 +00:00
parent dd72f87b64
commit c6c813aff1

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.496 2004/10/14 19:40:40 midas
Fixed 'append on edit' with uploads
Revision 1.495 2004/10/13 22:21:21 midas Revision 1.495 2004/10/13 22:21:21 midas
Started implementation of regex Started implementation of regex
@ -8217,12 +8220,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
/* otherwise some HTML statments would break the page syntax */ /* otherwise some HTML statments would break the page syntax */
rsputs3(text); rsputs3(text);
if (getcfg(lbs->name, "Append on edit", str, sizeof(str))) { if (!bupload)
strsubst(str, slist, svalue, j); if (getcfg(lbs->name, "Append on edit", str, sizeof(str))) {
while (strstr(str, "\\n")) strsubst(str, slist, svalue, j);
memcpy(strstr(str, "\\n"), "\r\n", 2); while (strstr(str, "\\n"))
rsputs3(str); memcpy(strstr(str, "\\n"), "\r\n", 2);
} rsputs3(str);
}
} }
} else if (breply) { } else if (breply) {
if (!getcfg(lbs->name, "Quote on reply", str, sizeof(str)) if (!getcfg(lbs->name, "Quote on reply", str, sizeof(str))