httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <...@sunstarsys.com>
Subject Re: Apache::Cookie patch
Date Sun, 03 Nov 2002 12:35:59 GMT
"Issac Goldstand" <margol@beamartyr.net> writes:

> *** Cookie.pm	Sat Nov  2 19:54:22 2002
> --- Cookie.pm.new	Sat Nov  2 19:52:05 2002
> ***************
> *** 132,137 ****
> --- 132,148 ----
>   
>   =back
>   
> + =head1 CAVEATS
> + 
> + =over 4
> + 
> + The underlying C code for the Apache::Cookie module presents some unexpected 
> + results for Perl programmers when dealing with null bytes ('\0's) inside 
> + cookies. Native C commonly uses "null-terminated strings" when storing scalar 
> + string values. This means that C uses a '\0' byte to mark the end of
> + the string(EOS). What this means for Perl programmers is that if you
> + wish to create a cookie with a '\0' byte, the underlying C library
> + will simply truncate the value at the '\0' byte.  A cookie with the
> + value '\0' will similarly simply be ignored, as the C library will not
> + detect any content whatsoever.  This problem is solved in the
> + libapreq-2.0 library. 
> + 
> + =back
> + 
>   =head1 BUGS
>   
>   =over 4
> 

Looks good to me; I'll apply as-is unless someone has an 
improvement to offer.

Thanks.
-- 
Joe Schaefer

Mime
View raw message