Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Adam Prime
I wrote a module based on a talk Geoff Young gave a bazillion years ago to abstract this problem away (sort of). You can check it out here: http://search.cpan.org/~aprime/Apache2-Filter-TagAware-0.02/lib/Apache2/Filter/TagAware.pm Adam On 3/31/2011 12:30 AM, Chris Datfung wrote: On Wed, Mar

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Torsten Förtsch
On Thursday, March 31, 2011 12:08:03 Chris Datfung wrote: > y string is always within the first 5000 bytes, but setting BUFF_LEN to > 8000 did not help as the buffer still sometimes gets cut after ~2500 bytes > or so. Do you know of any way to force the bucket to be a certain length? To my knowled

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Hendrik Schumacher
Hi Chris, my example implementation doesnt assume a string cut-off at a certain place. If your search string has a length of 7 bytes, the "worst case" is that one buffer contains the first 6 bytes and the next buffer the last one. If the string is cut at another place you just carry over a little

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Chris Datfung
Hi Hendrik, That seems like a good work around assuming the string gets cut off at the same place each time. Thanks for that, in my case, I'm not certain that it does. I thought the BUFF_LEN constant defines how many bytes should be read. My string is always within the first 5000 bytes, but settin

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Hendrik Schumacher
Am Do, 31.03.2011, 06:30 schrieb Chris Datfung: > On Wed, Mar 30, 2011 at 12:36 PM, Hendrik Schumacher > 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 filt