Skip to content

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

Merged
iequidoo merged 1 commit into
mainfrom
iequidoo/sanitise_name
Oct 11, 2024
Merged

fix: Assume file extensions are 32 chars max and don't contain whitespace (#5338)#6033
iequidoo merged 1 commit into
mainfrom
iequidoo/sanitise_name

Conversation

@iequidoo

@iequidoo iequidoo commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator

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 force-pushed the iequidoo/sanitise_name branch from f2efd78 to 5f4cc6e Compare October 11, 2024 13:44
@iequidoo iequidoo merged commit 8f41aed into main Oct 11, 2024
@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