httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: endless loop in libapreq
Date Thu, 11 Sep 2003 08:40:00 GMT
"Pelikan Stephan" <S.Pelikan@apa.at> writes:

> Hi,
> 
> There is an endless loop if I call a request like
> 
> ...?&test=1&test=2
> 
> You might say this should unbeautiful but I'm not the only one who
> build web-apps on top of this server so I had to find a solution:

Thanks.  However, I can't reproduce the bug with current cvs.
I was expecting the following diff 

Index: t/apreq/request.t
===================================================================
RCS file: /home/cvs/httpd-apreq/t/apreq/request.t,v
retrieving revision 1.2
diff -u -r1.2 request.t
--- t/apreq/request.t	18 Apr 2003 14:50:10 -0000	1.2
+++ t/apreq/request.t	11 Sep 2003 08:35:00 -0000
@@ -16,7 +16,7 @@
     my $test  = 'param';
     my $value = '42.5';
     ok t_cmp($value,
-             GET_BODY("$location?test=$test&value=$value"),
+             GET_BODY("$location?&test=$test&value=$value"),
              "basic param");
 }
 {

to tickle the endless-loop you're seeing, but the tests
completed successfully.  Can anyone come up with a patch 
of current cvs's t/apreq/request.t that exhibits the bug?

-- 
Joe Schaefer


Mime
View raw message