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

Percent-encode filenames with slash #69

Merged
merged 2 commits into from
Apr 24, 2020
Merged

Percent-encode filenames with slash #69

merged 2 commits into from
Apr 24, 2020

Conversation

mtibben
Copy link
Member

@mtibben mtibben commented Apr 23, 2020

It seems the keyring file backend is extremely permissive, as the filename is used as the key without any kind of escaping.

This PR does the bare-minimum by escaping / which I understand is the only character not allowed by unix systems. I'm really not sure how Windows handles this, so will leave further escaping for someone more familiar with Windows filesystems.

I don't anticipate major backwards-compatibility issues, as using a / character was failing already. The only edge-case is if anyone has used a % character in a key, this may need to be manually migrated.

@mtibben mtibben merged commit cfbe82d into master Apr 24, 2020
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.

1 participant