https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7312
Bug ID: 7312
Summary: HTML_FONT_FACE_BAD misfire
Product: Spamassassin
Version: 3.4.1
Hardware: PC
OS: Linux
Status: NEW
Severity: trivial
Priority: P2
Component: Rules (Eval Tests)
Assignee: [email protected]
Reporter: [email protected]
I just received a false-positive report that included a hit on
HTML_FONT_FACE_BAD.
I narrowed down a test case to a hit on a font tag like so:
font face=3D"'Courier New',monospace"
I'm not sure about efficiency or correct accuracy, but the simplest fix seems
to be to change the regex in html_tests() in SpamaAssassin/HTML.pm like so:
-if ($attr->{face} !~ /^[a-z ][a-z -]*[a-z](?:,\s*[a-z][a-z -]*[a-z])*$/i) {
+if ($attr->{face} !~ /^'?[a-z ][a-z -]*[a-z]'?(?:,\s*'?[a-z][a-z
-]*[a-z]'?)*$/i) {
--
You are receiving this mail because:
You are the assignee for the bug.