perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <torsten.foert...@gmx.net>
Subject Re: mod_perl 2.0.4: $r->uri
Date Mon, 06 Jun 2011 10:49:56 GMT
On Monday, June 06, 2011 10:25:14 Jie Gao wrote:
> Now if I want to get a work-around within mod_perl, what would you do?

First, you have to define what you think is the "right" behavior. Then 
you can for instance use a PerlTransHandler to patch the uri field as 
required.

PerlTransHandler "sub {                 \
  my ($r)=@_;                           \
  $r->uri(parse_uri $r->unparsed_uri);  \
  -1;                                   \
}"

parse_uri() is to be defined by you.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message