Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Mon, 24 Jan 2000, Bill Moseley wrote: ... Under mod_cgi I can clean up $ENV{QUERY_STRING} at the start of a program by removing leading '' and double '', but that doesn't work, obviously, under mod_perl. Could someone suggest a way to clean up the query string from within an

Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Tue, 25 Jan 2000, Bill Moseley wrote: Ok, this seems to work, but perldoc Apache doesn't say anything about setting it. Is this at risk of not working in the future? you can set $r-args, that won't be going away in the future.

Re: CGI.pm and QUERY_STRING fixup

2000-01-25 Thread Bill Moseley
Ok, this seems to work, but perldoc Apache doesn't say anything about setting it. Is this at risk of not working in the future? if ( $RUNNING_MOD_PERL (my $query = Apache-request-args() ) ) { for ( $query ) { tr///s; # no muliple s/^//; # no

CGI.pm and QUERY_STRING fixup

2000-01-24 Thread Bill Moseley
Hello, The guide touches on something like this at http://perl.apache.org/guide/browserbugs.html#Preventing_QUERY_STRING_from_get But I'm trying to fixup query strings that I don't have control over. CGI.pm complains when it gets a bad query string. For example, 53) ~ %setenv REQUEST_METHOD