Benny Pedersen wrote: > On Tue 25 May 2010 10:01:12 PM CEST, Benny Pedersen wrote > >> # save rule as 99_local_bugs_331.cf >> # SA = 3.3.1 >> if (version == 3.003001) >> uri __PROTOCOL_OK m{^https?://\w+} >> meta PROTOCOL_FIX (!__PROTOCOL_OK) >> describe PROTOCOL_FIX protocol in uri is not lowercase >> score PROTOCOL_FIX 5.0 >> endif # sa 3.3.1 only i hope >> >> above rule is a imidate fix until 3.3.2, works for me > > ups it hits when there is no url in body, how to fix this ?
That's what you told it to do. (! __PROTOCOL_OK) == true if there is not a match on your uri rule. Try something like this: uri PROTOCOL_FIX m{^(?!https?://)[hH][tT][tT][pP][sS]?://} There may be a more elegant way to do this, but it should match whenever there is an uppercase letter in there somewhere. -- Bowie