Manuel

On Thu, Feb 18, 2016 at 09:56:31AM +0000, Leos Rivas Manuel wrote:
> Maybe you can have a rule before this to check &variable eq 0 and skip the 
> rule 

I guess so. But I wrote the default as empty variable and not
non-existing variable. So I thought I would skip the "&variable eq 0".

> but the cost of macro expansion in your @within against that very 
> simple regex should be very low, especially if you compare it to 
> other rules with multiple capturing +100 long regex ;)

Yes. Think so too. And maybe there is even special code in pcre to
reduce the costs of ^$.

Ahoj,

Christian


-- 
If you have men who will only come if they know there is a good road, 
I don't want them. I want men who will come if there is no road at all.
-- David Livingstone
_______________________________________________
Owasp-modsecurity-core-rule-set mailing list
Owasp-modsecurity-core-rule-set@lists.owasp.org
https://lists.owasp.org/mailman/listinfo/owasp-modsecurity-core-rule-set

Reply via email to