[Mimedefang] BUG: filter_bad_filename doesn't expect a space
Jay Levitt
jay-defang at shopwatch.org
Mon Mar 3 22:02:01 EST 2003
The following line in mimedefang-filter:
$re = '\.' . $bad_exts . '\.*([^-A-Za-z0-9_.,]|$)';
will improperly match this filename (not including the quotes):
"test.com example.txt"
because "space" is not one of the characters listed in the "I'm done with
this filename" character class, so it believes the extension is ".com".
Jay Levitt
More information about the MIMEDefang
mailing list