Skip to content

Files without extensions are not correctly handled #30

@tmbenhura

Description

@tmbenhura

Tested Versions: 0.15.0 and 0.22.0

Files without extensions do not seem to trigger matchers.

Whilst debugging, in matchers.py I added

print("Content:" + str(att.has_content) + " Signature:" + str(att.has_magic_signature(b'%PDF')))
I get:
Content:False Signature:False Content:False Signature:False

Yet the PDF has content and starts with %PDF. It is also printed twice, not sure why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions