perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: PerlFixupHandler - %ENV
Date Mon, 07 Jan 2008 15:12:47 GMT


Anthony Gardner wrote:
> I'm trying to write a FixupHandler to clean up the query_string
> before it gets to the response phase. Problem is, I can't. After
> cleaning it up, I reassign to $ENV{QUERY_STRING} but in the called
> response script, the original QUERY_STRING is present.
> 
> I can add new keys to %ENV at the PerlFixupHandler stage and they're
> made available to the called response script, but not the changed
> QUERY_STRING!!
> 
> Any pointers would be great.Thx

try calling

   $r->subprocess_env();

in a void context.  see
 
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_

HTH

--Geoff


Mime
View raw message