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(zip blob): replace reserved characters with underscore #5264

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

Conversation

osmium8
Copy link

@osmium8 osmium8 commented May 22, 2024

If a zip file contains files, such that the filenames contains reserved characters, is extracted on Mac OS but not on Windows.

e.g. A zip file containing: /temp/file.pdf, test: order_123, test|order_123

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

  • < (less than)
  • > (greater than)
  • : (colon)
  • " (double quote)
  • / (forward slash)
  • \ (backslash)
  • | (vertical bar or pipe)
  • ? (question mark)
  • * (asterisk)

A zip file having files with name like '/mydir/myfile.pdf' is extracted on Mac OS but not on Windows, '/' is a reserved character.

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
@CLAassistant
Copy link

CLAassistant commented May 22, 2024

CLA assistant check
All committers have signed the CLA.

@osmium8 osmium8 changed the title feature(zip blob): replace reserved characters with underscore fix(zip blob): replace reserved characters with underscore May 22, 2024
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.

2 participants