Skip to content

[stable22] Fixes for quota text in navigation bar - #33134

Merged
blizzz merged 3 commits into
stable22from
backport/32993/stable22
Jul 6, 2022
Merged

[stable22] Fixes for quota text in navigation bar#33134
blizzz merged 3 commits into
stable22from
backport/32993/stable22

Conversation

@backportbot-nextcloud

Copy link
Copy Markdown

backport of #32993

"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 <danxuliu@gmail.com>
The JavaScript code that updates the quota text expects the element to
have "quotatext" as id.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
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 <danxuliu@gmail.com>
@blizzzblizzz mentioned this pull request Jul 6, 2022
8 tasks

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and works 👍

@blizzzblizzz 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 stable22Jul 6, 2022
@blizzz
blizzz deleted the backport/32993/stable22 branch July 6, 2022 19:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: filesregression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@skjnldsv@danxuliu@blizzz