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