Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 29318
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: sven-bitcard [...] sven.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: CGI::Fast: -oldstyle_urls doesn't work
Download (untitled) / with headers
text/plain 523b
the method query_string returns the query with semicolons instead of ampersands inbetween parameters despite the -oldstyle_urls option. See attached minimal testcase (run it as fastcgi) that shows this bug. There is also some faulty documentation in CGI.pm 3.29 - it states " You can also retrieve the unprocessed query string with query_string(): $the_string = query_string; " However, the query string returned not unprocessed. Workaround: Use $ENV{QUERY_STRING} instead of $query->query_string()
Subject: cgifast_oldstyle_urls_test1.pl
#!/usr/bin/perl -T use strict; use warnings; use CGI qw(-oldstyle_urls); use CGI::Fast (-oldstyle_urls); sub main { while (my $q = CGI::Fast->new()) { my $a = $q->query_string || ''; my $b = $ENV{QUERY_STRING} || ''; warn "DEBUG query_string() ='$a'\nDEBUG ENV=$b\n"; print $q->header("text/plain") . "testing.." . localtime(); } } main(); #eof
Download (untitled) / with headers
text/plain 671b
On Wed Sep 12 09:39:45 2007, neuhaus wrote: Show quoted text
> the method query_string returns the query with semicolons instead of > ampersands inbetween parameters despite the -oldstyle_urls option. > > See attached minimal testcase (run it as fastcgi) that shows this bug. > > There is also some faulty documentation in CGI.pm 3.29 - it states > > " > You can also retrieve the unprocessed query string with > query_string(): > > $the_string = query_string; > " > > However, the query string returned not unprocessed. > > Workaround: Use $ENV{QUERY_STRING} instead of $query->query_string()
Do you find that these issues still exist with CGI.pm 3.43? Mark
No feedback since 2009. Marking as resolved.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.