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

Fixes issue #735 - paths are URL escaped #758

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

cosmo0
Copy link
Contributor

@cosmo0 cosmo0 commented Apr 3, 2023

When selecting a path with special characters, they might get removed by the folder selection C#-side (see issue #735).

They are URL-decoded inside the ShowOpenDialogAsync method, which doesn't make sense: the decoding, if applicable, should be the responsibility of the JS side.

It's clearly not mandatory because other "dialog" methods, such as ShowSaveDialogAsync, don't use this UrlDecode and work fine.

This PR removes the URL decoding.

Re-creation of PR #736

@cosmo0
Copy link
Contributor Author

cosmo0 commented Apr 3, 2023

@FlorianRappl

Copy link
Collaborator

@FlorianRappl FlorianRappl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

cc @GregorBiswanger

@GregorBiswanger GregorBiswanger self-assigned this Apr 3, 2023
@GregorBiswanger GregorBiswanger added this to the 23.6.2 milestone Apr 3, 2023
@GregorBiswanger GregorBiswanger merged commit 33ac4ed into ElectronNET:main Apr 3, 2023
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.

3 participants