From b189745ef82289a502a00ca34a5cc6d65c4960ed Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Tue, 17 Aug 1999 20:38:32 +0200 Subject: [PATCH] tokenize{,_labled} now works on multi-headers, tokenizing the first one. Rev: src/modules/MIME/mime.c:1.21 --- src/modules/MIME/mime.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/MIME/mime.c b/src/modules/MIME/mime.c index d296b16623..96618ef442 100644 --- a/src/modules/MIME/mime.c +++ b/src/modules/MIME/mime.c @@ -1,5 +1,5 @@ /* - * $Id: mime.c,v 1.20 1999/08/07 21:23:11 marcus Exp $ + * $Id: mime.c,v 1.21 1999/08/17 18:38:32 marcus Exp $ * * RFC1521 functionality for Pike * @@ -10,7 +10,7 @@ #include "config.h" -RCSID("$Id: mime.c,v 1.20 1999/08/07 21:23:11 marcus Exp $"); +RCSID("$Id: mime.c,v 1.21 1999/08/17 18:38:32 marcus Exp $"); #include "stralloc.h" #include "pike_macros.h" #include "object.h" @@ -804,6 +804,11 @@ static void low_tokenize( INT32 args, int mode ) break; default: + if(*src == '\0') { + /* Multiple occurance header. Ignore all but first. */ + cnt = 0; + break; + } error( "Invalid character in header field\n" ); } -- GitLab