diff --git a/src/elogd.c b/src/elogd.c index 051d608b..e91b38e7 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -23855,14 +23855,16 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) rsprintf("%s\n", loc("Email notification suppressed")); } else if (isparam("error")) { - rsprintf("%s\n", getparam("error")); + strencode2(str, getparam("error"), sizeof(str)); + rsprintf("%s\n", str); } else { for (i = 0;; i++) { sprintf(str, "mail%d", i); if (isparam(str)) { if (i == 0) rsprintf(""); - rsprintf("%s %s
\n", loc("Email sent to"), getparam(str)); + strencode2(str, getparam(str), sizeof(str)); + rsprintf("%s %s
\n", loc("Email sent to"), str); } else break; }