mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed wrong truncation of email recipient
SVN revision: 1714
This commit is contained in:
parent
469d259ed4
commit
ee6bb24563
@ -19675,10 +19675,11 @@ void submit_elog(LOGBOOK * lbs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(mail_to) > 0) {
|
if (strlen(mail_to) > 0) {
|
||||||
mail_to[strlen(mail_to) - 4] = 0; /* strip last ',\r\n\t' */
|
if (strlen(mail_to) > 4 && mail_to[strlen(mail_to) - 4] == ',')
|
||||||
rcpt_to[strlen(rcpt_to) - 1] = 0; /* strip last ',' */
|
mail_to[strlen(mail_to) - 4] = 0; /* strip last ',\r\n\t' */
|
||||||
puts(mail_to);
|
|
||||||
puts(rcpt_to);
|
if (strlen(rcpt_to) > 1 && mail_to[strlen(rcpt_to) - 1] == ',')
|
||||||
|
rcpt_to[strlen(rcpt_to) - 1] = 0; /* strip last ',' */
|
||||||
if (compose_email
|
if (compose_email
|
||||||
(lbs, rcpt_to, mail_to, message_id, attrib, mail_param, isparam("edit_id"), att_file,
|
(lbs, rcpt_to, mail_to, message_id, attrib, mail_param, isparam("edit_id"), att_file,
|
||||||
isparam("encoding") ? getparam("encoding") : "plain") == 0)
|
isparam("encoding") ? getparam("encoding") : "plain") == 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user