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

DropPlugin should percent-decode the file URI on Unix #666

Open
MariusDoe opened this issue Sep 22, 2023 · 0 comments
Open

DropPlugin should percent-decode the file URI on Unix #666

MariusDoe opened this issue Sep 22, 2023 · 0 comments

Comments

@MariusDoe
Copy link

On Unix, when dropping a file that has spaces or other special characters in its path, primitiveDropRequestFileName returns a percent-encoded version of the path and primitiveDropRequestFileHandle fails.

I think the problem is that dropRequestFileName skips the file:/// prefix of the URI, but does not percent-decode it. Interestingly, uri2string, which isn't currently used, does percent-decoding.

dropRequestFileName is used by primitiveDropRequestFileName and also by dropRequestFileHandle, which is why primitiveDropRequestFileHandle fails.

Note: I did not check whether this problem exists on other platforms.

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