mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed email notification problem if URL does not contain a trailing '/'
SVN revision: 915
This commit is contained in:
parent
51cc99ca88
commit
5712033a15
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.352 2004/06/21 18:04:43 midas
|
||||||
|
Fixed email notification problem if URL does not contain a trailing '/'
|
||||||
|
|
||||||
Revision 1.351 2004/06/18 20:44:37 midas
|
Revision 1.351 2004/06/18 20:44:37 midas
|
||||||
Implemented deletion of logbooks through web interface
|
Implemented deletion of logbooks through web interface
|
||||||
|
|
||||||
@ -13742,6 +13745,8 @@ int compose_email(LOGBOOK * lbs, char *mail_to, int message_id,
|
|||||||
strcat(str, "/");
|
strcat(str, "/");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (str[strlen(str)-1] != '/')
|
||||||
|
strlcat(str, "/", sizeof(str));
|
||||||
strlcat(str, lbs->name_enc, sizeof(str));
|
strlcat(str, lbs->name_enc, sizeof(str));
|
||||||
strlcat(str, "/", sizeof(str));
|
strlcat(str, "/", sizeof(str));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user