[Mimedefang] BUG: filter_bad_filename doesn't expect a space
David F. Skoll
dfs at roaringpenguin.com
Tue Mar 4 08:23:03 EST 2003
On Mon, 3 Mar 2003, Jay Levitt wrote:
> 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"
That's a feature, not a bug. :-) Consider these two malformed MIME headers:
Content-Disposition: attachment; filename=test.com example.txt
Content-Disposition: attachment; filename=example.txt test.com
Consider the myriad ways buggy MUA's might handle that, and then you
understand the reason behind the excessively-conservative regular
expression.
--
David.
More information about the MIMEDefang
mailing list