diff --git a/src/elogd.c b/src/elogd.c index 5ae6d3b2..76a73890 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9005,8 +9005,10 @@ void show_change_pwd_page(LOGBOOK * lbs) rsprintf(""); if (wrong_pwd == 1) { - if (error_str[0]) - rsprintf("\n", error_str); + if (error_str[0]) { + strencode2(str, error_str, sizeof(str)); + rsprintf("\n", str); + } else rsprintf("\n", loc("Wrong password")); } @@ -9015,8 +9017,10 @@ void show_change_pwd_page(LOGBOOK * lbs) rsprintf("\n", loc("New passwords do not match, please retype")); - if (wrong_pwd == 3) - rsprintf("\n", error_str); + if (wrong_pwd == 3) { + strencode2(str, error_str, sizeof(str)); + rsprintf("\n", str); + } rsprintf("
%s!
%s!
%s!
%s!
%s!
%s!
\n"); @@ -21102,8 +21106,9 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa rsprintf("\n"); if (isparam("last")) { - rsprintf("", loc("Restrict seach to last")); - rsprintf("", getparam("last"), loc("days")); + rsprintf("", loc("Restrict search to last")); + strencode2(str, getparam("last"), sizeof(str)); + rsprintf("", str, loc("days")); } if (isparam("ma") || isparam("ya") || isparam("da") || isparam("ha") || isparam("na")
%s:%s %s
%s:%s %s