From 5712033a15d4cc7dc2c806d1e48ddc823a6311c2 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 21 Jun 2004 18:04:43 +0000 Subject: [PATCH] Fixed email notification problem if URL does not contain a trailing '/' SVN revision: 915 --- src/elogd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elogd.c b/src/elogd.c index 845ad6ea..1a0710a1 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $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 Implemented deletion of logbooks through web interface @@ -13742,6 +13745,8 @@ int compose_email(LOGBOOK * lbs, char *mail_to, int message_id, strcat(str, "/"); } } else { + if (str[strlen(str)-1] != '/') + strlcat(str, "/", sizeof(str)); strlcat(str, lbs->name_enc, sizeof(str)); strlcat(str, "/", sizeof(str)); }