commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elwin, Martin" <mel...@rsasecurity.com>
Subject RE: [PATCH] bug 12607
Date Mon, 23 Sep 2002 14:32:54 GMT
Good question. From rfc 2616:

chunk          = chunk-size [ chunk-extension ] CRLF
                        chunk-data CRLF

where:

chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
chunk-ext-name = token
chunk-ext-val  = token | quoted-string

Is \r allowed in token or quoted-string...? I don't think so, but I might be
wrong here...

/M

> -----Original Message-----
> From: Ortwin Gl├╝ck [mailto:ortwin.glueck@nose.ch] 
> Sent: Monday, September 23, 2002 4:19 PM
> To: jakarta-commons-cvs@apache.org
> Cc: melwin@rsasecurity.com
> Subject: [PATCH] bug 12607
> 
> 
> As suggested by Martin Elwin.
> 
> Patch is for .../src/java/
> 
> Should we throw an Exception instead of this:
> } else {
>       // this was not CRLF, so now write '\r' + this char
>       baos.write('\r');
>       baos.write(b);
>       state = 0;
> }
> 
> I mean having \r inside a chunk size field is illegal and thus a 
> protocol violation. Comments from the "real world"?
> 

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message