SA Bugzilla – Bug 2614
FRIEND_AT_PUBLIC test broken
Last modified: 2004-01-25 22:23:43 UTC
user@nicetoknowyou.com matches FRIEND_AT_PUBLIC (you.com) but shouldn't, since you.com is just a suffix. A proposed patch (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=212722) is: -header FRIEND_AT_PUBLIC To =~ /(?:yourdomain|you|your|public)\.(?:com|org|net)/i +header FRIEND_AT_PUBLIC To =~ /(?:\.|\@?:)(?:yourdomain|you|your|public)\.(?:com|org|net)/i
The regex isn't right (it has an extraneous '?:' after the '@'). It would be better written this way: header FRIEND_AT_PUBLIC To =~ /[.\@](?:yourdomain|you|your|public)\.(?:com|org|net)/i
Yes, I saw it. Any objections to commit the change?
+1. any lost hits are outweighed by avoiding that kind of stupid FP ;)
Fixed like [\.\@]
The regex in cvs now looks like this: /[\@\.](?:yourdomain|you|your|(?<!re)public)\.(?:com|org|net)/i Now that we have '[\@\.]' at the start, the '(?:!re)' can be deleted. Actually, it wouldn't hurt to simplify it to /[\@\.](?:your?(?:domain)?|public)\.(?:com|org|net)/i since I doubt the incidental inclusion of 'youdomain' is a problem.
*** Bug 2651 has been marked as a duplicate of this bug. ***