-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stas Bekman wrote:
| Tom Schindl wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> and now without a typo :-(
|
|
| Looks good, Tom. One question though: Why not just do:
|
| <Files *\.html >
|   PerlOutputFilterHandler Beso::OutFilterHandler
| </Files>
|
| or did you mean the patch to be just a demonstration of how to add a
| filter if you are already inside some pre-response phase handler?
|

Exactly as the title of the section should explain:
"Adding OutFilters dynamically"  ;-)


|> + <Files *\.html > |> + PerlFixupHandler MyApache::AddFilterDyn + </Files> | | [...] | |> + sub handler { |> + my $r = shift; |> + |> + $r->add_output_filter(\&MyApache::FilterObfuscate::handler); |> + |> + return Apache::OK; | | |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCQHOmkVPeOFLgZFIRAqEOAKCoC+D4bfkoe1XyhOgbsGp45nJScwCfQgyu
bkWIHyKhyR2bjZBuNCbTbCU=
=ELI8
-----END PGP SIGNATURE-----

Reply via email to