I'm trying to do something which should be simple, and yet still escapes
me.

Why won't (in filter_bad_filename()):

    # Attachments matching this regexp will go through
    $secret = '^itc*\.zip$';

    return 0 if (re_match($entity, $secret));

return 0 on a filename of itcfoo.zip ?

The line (re_match($entity, '\.zip$') will hit.


Thanks,
Graham
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to