diff --git a/src/elogd.c b/src/elogd.c index daf5f9fd..619184c5 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10490,7 +10490,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL /*---- add password in case cookie expires during edit ----*/ if (getcfg(lbs->name, "Password file", str, sizeof(str)) && isparam("unm")) { - rsprintf("\n", getparam("unm")); + strencode2(str, getparam("unm"), sizeof(str)); + rsprintf("\n", str); if (isparam("upwd")) strlcpy(upwd, getparam("upwd"), sizeof(upwd)); else @@ -10577,7 +10578,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("%s:", loc("Entry time")); rsprintf("%s\n", str); - rsprintf("\n", date); + + strencode2(str, date, sizeof(str)); + rsprintf("\n", str); } if (_condition[0]) @@ -11839,7 +11842,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL thumb_ref[0] = 0; if (strlen(att[index]) < 14 || att[index][6] != '_' || att[index][13] != '_') { - rsprintf("Error: Invalid attachment \"%s\"
", att); + strencode2(str, att[index], sizeof(str)); + rsprintf("Error: Invalid attachment \"%s\"
", str); } else { strlcpy(file_name, lbs->data_dir, sizeof(file_name)); @@ -11889,7 +11893,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("  \n"); /* ImageMagick available, so get image size */ - rsprintf("%s \n", att[index] + 14); + strencode2(str, att[index], sizeof(str)); + rsprintf("%s \n", str + 14); if (chkext(file_name, ".pdf") || chkext(file_name, ".ps")) sprintf(cmd, "%s -format '%%wx%%h' '%s[0]'", _identify_cmd, file_name); else @@ -12006,10 +12011,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("\n"); } + strencode2(str, att[index], sizeof(str)); if (thumb_ref[0]) - rsprintf("\n", index, thumb_ref, att[index]); + rsprintf("\n", index, thumb_ref, str); else - rsprintf("\n", index, att[index]); + rsprintf("\n", index, str); rsprintf("\n"); } else @@ -13739,7 +13745,8 @@ void show_config_page(LOGBOOK * lbs) rsprintf("