Skip to content

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

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

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

Conversation

@halaei

@halaei halaei commented Jun 13, 2021

Copy link
Copy Markdown

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

retyui commented Nov 11, 2021

Copy link
Copy Markdown

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