hx26 - 2012-02-02

Hi,

i want to filter html comments in the response body.  So i used this:

SecContentInjection On
SecResponseBodyAccess On
SecStreamOutBodyInspection On
SecRule STREAM_OUTPUT_BODY "@rsub s/<!-.*?->/ /" "phase:4,t:none,nolog,pass"

this works but not if i have more than one line… for example:

<!-
bla
bla
bal
->

and how could i resolve this problem with mod_security 2.5 ?

regards,
kai