Skip to content

fix normalizing file:// paths with special characters #736

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Conversation

halaei
Copy link

@halaei halaei commented Jun 13, 2021

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.

@retyui
Copy link

retyui commented Nov 11, 2021

Hi
This module is unmentionable ⚠️! please use fork: https://github.com/RonRadtke/react-native-blob-util

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants