Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Apr 23, 2025

Backport of #1151

@nextcloud/paths was already an implicit dependency, but now it is made
explicit to use the functions it provides in the PDF viewer code.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The filename may contain characters that are not compatible with a URL
path, so it needs to be explicitly encoded. Otherwise the upload could
fail (for example, if the filename contains "%" followed by a letter,
which would cause the server to fail to decode the path and return a
"400 Bad request" error) or even overwrite a different file (for
example, if the filename contains "#", which would cause the rest of the
path to be ignored).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the backport/1151/stable31 branch from c85ad74 to 9b50651 Compare April 24, 2025 20:57
@danxuliu
Copy link
Member

/compile /

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@danxuliu danxuliu marked this pull request as ready for review April 24, 2025 22:50
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@danxuliu danxuliu merged commit c8a6a28 into stable31 Apr 24, 2025
38 checks passed
@danxuliu danxuliu deleted the backport/1151/stable31 branch April 24, 2025 22:51
@blizzz blizzz mentioned this pull request May 5, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants