Skip to content

Fix normalizing file:// paths with special characters #79

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

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

halaei
Copy link

@halaei halaei commented Nov 13, 2021

Resubmitting joltup#736

File uris with space and other special characters are not correctly normalized. The fix is to removing 3 lines of code on normalizePath() because the correct normalization code already exists in PathResolver.getRealPathFromURI().

Example input: file:///storage/emulated/0/Foo%20Bar
Correct output: /storage/emulated/0/Foo Bar.
Current (wrong) output: /storage/emulated/0/Foo%20Bar.

PS: Is it possible for you to take a look at other PRs in joltup#736 as well? I know that's a lot to ask, so I get it if you say no :)

@halaei halaei force-pushed the fix-android-file-scheme-2 branch from ae78441 to 06883c6 Compare November 14, 2021 10:22
@RonRadtke
Copy link
Owner

Hi,
I merged already quite some over. But I can't promise I didn't miss any like this one here. So thank you very much for resubmitting it :)

@RonRadtke RonRadtke merged commit 03aec72 into RonRadtke:master Nov 25, 2021
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