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

Encoded Characters in directory contents #198

Closed
SpudNyk opened this issue Feb 26, 2020 · 1 comment
Closed

Encoded Characters in directory contents #198

SpudNyk opened this issue Feb 26, 2020 · 1 comment

Comments

@SpudNyk
Copy link
Contributor

SpudNyk commented Feb 26, 2020

A file or directory with an & in the name returns as & rather than as &, These should be decoded.

This occurs in chrome - I believe this is because the fast-xml-parser does not decode string values by default.

The api for fast-xml-parser needs a tag/attrValueProcessor option to do the decoding.
I am working around it for now by decoding basename and filename after content fetching.

This also means that directories with an & in the name have a self entry in the directory listing as the & name does not match for the webdav-client to strip out.

@SpudNyk
Copy link
Contributor Author

SpudNyk commented Feb 26, 2020

Note the & is the case I ran into but I assume this would happen for encoded extended characters and quotes too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants