Tobi:
> Wietse,
> 
> Am 14.05.20 um 16:04 schrieb Wietse Venema:
> > So your best bet is to rewrite your patterns.
> 
> that's what we did now and it saves a lot of cpu cycles :-) As our
> pattern matched something at beginning and at the end of the string (all
> stuff between matched via patterns with * repetition) the easiest thing
> was to add a condition to the map file for the first part and in the if
> match the end of the string. That way we could get rid of a lot of the *
> between start and end :-)
> 
> > if /^Content-(Disposition|Type).*name\s*=\s*/i

The 'i' flag makes the pattern case sensitive. You should
leave it at the default (case insensitive).

        Wietse

> > /(\.|=2E)(dmg|cab)\s*(;|$)/ REJECT extension of .$2 is not allowed
> > endif
> 
> the pattern above now runs without any changes to stack size :-)
> 
> --
> Cheers
> 
> tobi
> 
> 

Reply via email to