Subject: | bugreport and fix |
Date: | Fri, 28 Dec 2007 04:24:06 +0300 |
To: | bug-CGI-Auth-Basic [...] rt.cpan.org |
From: | Boo_boo <kaitarou [...] gmail.com> |
CGI-Auth-Basic module does'nt preserve GET parameters given to caller script.
thus www.site.org/script.pl?par1=1&par2=2 becomes just www.site.org/script.pl after authorisation.
i found this at line 64:
$self->{program} = $self->{cgi}->url || '';
and after i changed it to:
$self->{program} = ($self->{cgi}->url .($ENV{'QUERY_STRING'}? ('?'."$ENV{'QUERY_STRING'}") : '')) || '';
bug disappers
--
With best regards,
Boo-boo
mailto: kaitarou(^at^)gmail.com