perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Datfung <chris.datf...@gmail.com>
Subject Re: Apache2::Filter Intermittently Missing Injected String
Date Thu, 31 Mar 2011 04:30:35 GMT
On Wed, Mar 30, 2011 at 12:36 PM, Hendrik Schumacher <hs@activeframe.de>wrote:

> Am Mi, 30.03.2011, 12:17 schrieb Chris Datfung:
>
> I had a similar problem with a http proxy that injected a string into the
> HTML body. If the response is passed to the filter in multiple parts there
> is a certain probability that the response is split on the string position
> you are looking for (for example part 2 ends with "</bo" and part 3 starts
> with "dy>"). I had to buffer the last bytes of each response part and take
> them into account


Hi Hendrik,

That is exactly the problem. How did you buffer the last bytes of each
response. Don't you just set the BUFF_LEN and thats the number of characters
you get?

Chris

Mime
View raw message