From 27bbe4fa1e9d1867316b8e07bbf3c7463873b18a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 23 Jul 2009 06:29:18 +0000 Subject: [PATCH] Found another occation of possible invalid encoding SVN revision: 2235 --- src/elogd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/elogd.c b/src/elogd.c index 6653ab02..3cc623c0 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -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 */