-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix: encode uri for delete, restore and favorite #40644
fix: encode uri for delete, restore and favorite #40644
Conversation
Version for stable27: #40642 |
588234c
to
e5fb084
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
Conflicts mildly |
To encode # and other characters properly Signed-off-by: Daniel Kesselberg <[email protected]>
e5fb084
to
4f70324
Compare
CI failure is unrelated to the code changes |
UI is broken and show lots of encoded files now :) |
Come on folks who approved, have any of you actually tested this PR ?.... |
@@ -46,7 +46,7 @@ const resultToNode = function(node: FileStat): File | Folder { | |||
|
|||
const nodeData = { | |||
id: node.props?.fileid as number || 0, | |||
source: generateRemoteUrl('dav' + rootPath + node.filename), | |||
source: generateRemoteUrl(encodePath('dav' + rootPath + node.filename)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
encodePath
is no even defined here...
Summary
To encode # and other characters properly
Similar to #39842 but different ;)
#
is a valid character for our filenames but also for uris in general and therefore not encoded by default.To use
#
in filenames we need to encode it.TODO
Checklist