mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Found another occation of possible invalid encoding
SVN revision: 2235
This commit is contained in:
parent
213e1a65b6
commit
27bbe4fa1e
@ -9205,6 +9205,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
|
|
||||||
/* get encoding */
|
/* get encoding */
|
||||||
strlcpy(encoding, isparam("encoding") ? getparam("encoding") : "", sizeof(encoding));
|
strlcpy(encoding, isparam("encoding") ? getparam("encoding") : "", sizeof(encoding));
|
||||||
|
if (!strieq(encoding, "plain") && !strieq(encoding, "ELCode") &&
|
||||||
|
!strieq(encoding, "HTML"))
|
||||||
|
strcpy(encoding, "plain");
|
||||||
} else {
|
} else {
|
||||||
if (message_id) {
|
if (message_id) {
|
||||||
/* get message for reply/edit */
|
/* get message for reply/edit */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user