Skip to content

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

Open
halaei wants to merge 1 commit intojoltup:masterfrom
halaei:fix-android-file-scheme
Open

fix normalizing file:// paths with special characters#736
halaei wants to merge 1 commit intojoltup:masterfrom
halaei:fix-android-file-scheme

Conversation

@halaei
Copy link
Copy Markdown

@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
Copy Markdown

retyui commented Nov 11, 2021

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

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