From 73de6dbe40dc4f4aecd933becc386c9e701909fc Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Thu, 13 Jun 2002 12:46:09 +0000 Subject: [PATCH] Fixed problem wiht 'reply to:' in subject SVN revision: 118 --- elogd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/elogd.c b/elogd.c index d5074e33..072f86d2 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.14 2002/06/13 12:46:09 midas + Fixed problem wiht 'reply to:' in subject + Revision 2.13 2002/06/13 08:59:53 midas Made '../last10?mode=summary' work @@ -1196,14 +1199,17 @@ int i; void el_decode(char *message, char *key, char *result) { -char *pc; +char *pc, *ph; if (result == NULL) return; *result = 0; - if (strstr(message, key)) + ph = strstr(message, "========================================\n"); + + if ((pc = strstr(message, key)) != NULL && + pc < ph && (*(pc-1) == '\n' || *(pc-1) == '\r')) { for (pc=strstr(message, key)+strlen(key) ; *pc != '\n' && *pc != '\r' ; ) *result++ = *pc++;