Skip to content

Don't sanitize URI on drop#894

Merged
jeremypw merged 3 commits intomasterfrom
lenemter/dnd-dont-sanitize-path
Aug 14, 2025
Merged

Don't sanitize URI on drop#894
jeremypw merged 3 commits intomasterfrom
lenemter/dnd-dont-sanitize-path

Conversation

@lenemter
Copy link
Member

Fixes #876
Closes #877

URIs must escape special characters and Utils.sanitize_path undoes this. Furthermore, there's no other reasons to use Utils.sanitize_path here -- dropped paths must be absolute. So in conclusion if a file manager does everything correctly, we shouldn't need this. I tested this branch using Dolphin.

@lenemter lenemter requested a review from a team August 11, 2025 10:53
@jeremypw
Copy link
Collaborator

We need to fix DnD in Files before this can be merged - otherwise truncation still occurs when testing with Files.

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Fixes the issue for Dolphin and Nautilus. Needs to be fixed in Files itself. Thanks!

@jeremypw jeremypw enabled auto-merge (squash) August 14, 2025 11:46
@jeremypw
Copy link
Collaborator

Not sure why CI fails - passes OK locally.

@jeremypw jeremypw merged commit 9b27114 into master Aug 14, 2025
7 of 8 checks passed
@jeremypw jeremypw deleted the lenemter/dnd-dont-sanitize-path branch August 14, 2025 15:31
@jeremypw jeremypw added this to the 7.1.1 milestone Aug 17, 2025
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.

Dropping a file with '#' in the name causes truncation

2 participants