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

All: Fixes #7851: Encode the non-ASCII characters in OneDrive URI #7868

Merged
merged 5 commits into from
Mar 12, 2023

Conversation

wh201906
Copy link
Contributor

@wh201906 wh201906 commented Mar 3, 2023

This fixes #7851

The appDir might contain non-ASCII characters in OneDrive, like

/drive/root:/应用應用程式/Joplin

I use the same regular expression for detecting unescaped characters in Node.js to check this, then call encodeURI() for it.

Here is a small demo
URI with unescaped characters
图片

URI without unescaped characters
图片

@wh201906 wh201906 changed the title All: Fixes #7851: Encode the non-ASCII characters in URI All: Fixes #7851: Encode the non-ASCII characters in OneDrive URI Mar 3, 2023
@laurent22
Copy link
Owner

Thanks for the fix @wh201906

@laurent22 laurent22 merged commit f6d1a27 into laurent22:dev Mar 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2023
@wh201906 wh201906 deleted the onedrive branch March 12, 2023 15:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unescaped characters when using onedrive as sync target
2 participants