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

Path HTML decode bug #40

Open
marcogruhl opened this issue Jan 27, 2023 · 0 comments
Open

Path HTML decode bug #40

marcogruhl opened this issue Jan 27, 2023 · 0 comments

Comments

@marcogruhl
Copy link

Hi,

i found a small bug with special characters in the path.

We have a path like: _c:\name & name GmbH_ which is somehow handled as _c:\name & name GmbH_ so the length calculation is wrong for e.g. var dir_tmp = getDirNameAndPath(SelectedFolderID).substring(sourceRoot.length); In this example it will produce always a "subfolder" "GmbH" (the 4 extra characters).

i fixed it dirty for me by adding a .replace(/&/g, '&'); on the return of the getDirNameAndPath function. Im not very into JavaScript so i dont know a better solution. Maybe someone can fix it more properly and generic and make a PR.

PS: thank you for this project!

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

No branches or pull requests

1 participant