mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem wiht 'reply to:' in subject
SVN revision: 118
This commit is contained in:
parent
f15b0e2ec6
commit
73de6dbe40
10
elogd.c
10
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 2.13 2002/06/13 08:59:53 midas
|
||||||
Made '../last10?mode=summary' work
|
Made '../last10?mode=summary' work
|
||||||
|
|
||||||
@ -1196,14 +1199,17 @@ int i;
|
|||||||
|
|
||||||
void el_decode(char *message, char *key, char *result)
|
void el_decode(char *message, char *key, char *result)
|
||||||
{
|
{
|
||||||
char *pc;
|
char *pc, *ph;
|
||||||
|
|
||||||
if (result == NULL)
|
if (result == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
*result = 0;
|
*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' ; )
|
for (pc=strstr(message, key)+strlen(key) ; *pc != '\n' && *pc != '\r' ; )
|
||||||
*result++ = *pc++;
|
*result++ = *pc++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user