Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #32993

danxuliu added 3 commits July 6, 2022 13:28
"t()" escapes and sanitizes the returned text by default, so strings
like "<" are converted to "&lt;". However, the "jQuery.text()" parameter
does not need to be escaped, as "&lt;" is shown literally as "&lt;"
rather than "<". Now "jQuery.html()" is used instead, which "unescapes"
the given text and sets it as a new text node (as the text in the
parameter does not contain markup for elements, only text).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
The JavaScript code that updates the quota text expects the element to
have "quotatext" as id.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Note that the quota may change too when files are moved if the file is
moved, for example, to or from a folder shared by other user.

Besides the quota the storage statistics are also updated, similar to
what is done when a file is deleted.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@blizzz blizzz mentioned this pull request Jul 6, 2022
8 tasks
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 👍

@blizzz blizzz added the 4. to release Ready to be released and/or waiting for tests to finish label Jul 6, 2022
@blizzz blizzz merged commit 02e432a into stable22 Jul 6, 2022
@blizzz blizzz deleted the backport/32993/stable22 branch July 6, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: files regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants