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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1189604383-4655-1"
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 523
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
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1189604383-4655-0"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Type: application/x-perl; name="cgifast_oldstyle_urls_test1.pl"
Content-Disposition: inline; filename="cgifast_oldstyle_urls_test1.pl"
Content-Transfer-Encoding: base64
Content-Length: 429
#!/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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-6413-1248484740-1309.29318-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 671
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18703-1358820828-481.29318-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 45
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.