httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: mod_substitute memory problem
Date Thu, 11 Jun 2009 11:48:55 GMT


On 06/11/2009 09:11 AM, Nick Gearls wrote:
> Yes, that's what I meant.
> 
> The kind of thing that (surprisingly) works is
>  s/(pattern)/---toremove---$1/q
>  s/---toremove---//q
> 
> The second one should obviously use the n flag, but even with a regex it
> works. I also tried with the second string longer or shorter, and it
> always works (at least on my test page).
> Can I really consider this as safe?


I guess this special case yes, but not in general.

Regards

RĂ¼diger


Mime
View raw message