Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rar signature check to pre-select rar files #2700

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

adipose
Copy link

@adipose adipose commented Apr 1, 2024

No description provided.

@adipose
Copy link
Author

adipose commented Apr 1, 2024

The only missing aspect of the enumfilters approach was checking the signature bytes. I moved that to a dedicated check which is basically just reading the first few bytes of the file to see if it's rar4 or rar5.

The function also checks the extension and excludes all protocols except "file" which I think makes the IsURL check redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant