mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Fixed mangeling of <> in email notification
SVN revision: 2405
This commit is contained in:
parent
feb5bf5f77
commit
855b8f60f5
@ -21786,7 +21786,7 @@ int compose_email(LOGBOOK * lbs, char *rcpt_to, char *mail_to, int message_id,
|
|||||||
|
|
||||||
if (n < 10) {
|
if (n < 10) {
|
||||||
for (i = 0; i < n && i < MAX_PARAM; i++) {
|
for (i = 0; i < n && i < MAX_PARAM; i++) {
|
||||||
strencode2(str, list[i], sizeof(str));
|
strlcpy(str, list[i], sizeof(str));
|
||||||
url_encode(str, sizeof(str));
|
url_encode(str, sizeof(str));
|
||||||
sprintf(mail_param + strlen(mail_param), "mail%d=%s", i, str);
|
sprintf(mail_param + strlen(mail_param), "mail%d=%s", i, str);
|
||||||
if (i < n - 1)
|
if (i < n - 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user