Found another occation of possible invalid encoding

SVN revision: 2235
This commit is contained in:
2009-07-23 06:29:18 +00:00
parent 213e1a65b6
commit 27bbe4fa1e
+3
View File
@@ -9205,6 +9205,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
/* get encoding */
strlcpy(encoding, isparam("encoding") ? getparam("encoding") : "", sizeof(encoding));
if (!strieq(encoding, "plain") && !strieq(encoding, "ELCode") &&
!strieq(encoding, "HTML"))
strcpy(encoding, "plain");
} else {
if (message_id) {
/* get message for reply/edit */