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

fix: Assume file extensions are 32 chars max and don't contain whitespace (#5338) #6033

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Oct 8, 2024

Fix #5338

…pace (#5338)

Before file extensions were also limited to 32 chars, but extra chars in the beginning were just cut
off, e.g. "file.with_lots_of_characters_behind_point_and_double_ending.tar.gz" was considered to
have an extension "d_point_and_double_ending.tar.gz". Better to take only "tar.gz" then.

Also don't include whitespace-containing parts in extensions. File extensions generally don't
contain whitespaces.
@iequidoo iequidoo merged commit 8f41aed into main Oct 11, 2024
37 checks passed
@iequidoo iequidoo deleted the iequidoo/sanitise_name branch October 11, 2024 14:04
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.

Delta Chat treats a part of file name as an extension
2 participants