You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2004/02/06 19:20:21 UTC

Re: Calling perl output filter before Includes filter


Hamilton, Henrique H wrote:
> I am using apache2.0.48 and mod perl 1.99_12.
> I've written a mod perl module as a perl output filter that rewrites image
> links
> to point to another server.[example: <img src="header.gif"> becomes <img
> src="//someserver.net/www.mysite.com/header.gif">]
> My problem is that my perl module doesn't play well with SSI's . 
> I know if I call the perl module before it's processed by the ssi (INCLUDES
> filter) everything will work fine.

that sounds like a problem with your logic, not a problem with your filter
order :)

> Is there a way to force my perl output filter handler to be called BEFORE
> the html is parsed by the INCLUDES output filter?

see PerlSetOuputFilter

http://perl.apache.org/docs/2.0/user/handlers/filters.html#C_PerlSetOutputFilter_

HTH

--Geoff





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


Re: Calling perl output filter before Includes filter

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
whoops, wrong list.  sorry.

--Geoff


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