From faefbaf1b031e737dc0e6605dad25b9c1c8b2449 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 2 Jul 2002 07:33:48 +0000 Subject: [PATCH] Added attribute lists with commas SVN revision: 161 --- elogd.c | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/elogd.c b/elogd.c index d33cca32..bb4dc7f7 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.37 2002/07/02 07:33:48 midas + Added attribute lists with commas + Revision 2.36 2002/07/01 09:32:32 midas Fixed problem with submitting '------' as only text @@ -2898,23 +2901,47 @@ int i; char *p; memset(list, 0, size*NAME_LENGTH); - p = strtok(str, ","); - if (!p) + p = str; + if (!p || !*p) return 0; + while (*p == ' ') p++; - for (i=0 ; p && i