Skip to content
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(core): Do not use v-html for translation output #49346

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 18, 2024

Summary

The content that can be rendered does not include HTML (see recommended object).
But v-html was used, this is potentially dangerous, even though we sanitize the translation values, so no urgent harm but better safe than sorry.

Checklist

@susnux susnux added this to the Nextcloud 31 milestone Nov 18, 2024
@susnux susnux requested review from nickvergessen, a team, artonge, skjnldsv and sorbaugh and removed request for a team November 18, 2024 13:33
@susnux
Copy link
Contributor Author

susnux commented Nov 18, 2024

/backport to stable30

@susnux
Copy link
Contributor Author

susnux commented Nov 18, 2024

/backport to stable29

@susnux
Copy link
Contributor Author

susnux commented Nov 18, 2024

/backport to stable28

@susnux susnux marked this pull request as ready for review November 18, 2024 13:34
@skjnldsv
Copy link
Member

/compile rebase

@skjnldsv skjnldsv enabled auto-merge November 19, 2024 09:31
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 19, 2024
susnux and others added 2 commits November 19, 2024 09:35
The content that can be renderered does *not* include HTML (see
`recommended` object).
But `v-html` was used, this is potentially dangerous, even though we
sanitize the translation values, so no urgent harm but better safe than
sorry.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@skjnldsv skjnldsv merged commit 47322e8 into master Nov 19, 2024
119 checks passed
@skjnldsv skjnldsv deleted the fix/drop-v-html branch November 19, 2024 09:46

This comment was marked as resolved.

This comment was marked as resolved.

@skjnldsv
Copy link
Member

/backport 52769a4 to stable29

@skjnldsv
Copy link
Member

/backport 52769a4 to stable28

Copy link

backportbot bot commented Nov 19, 2024

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/49346/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 52769a4

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/49346/stable29

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Copy link

backportbot bot commented Nov 19, 2024

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b backport/49346/stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 52769a4

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/49346/stable28

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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 backport-request bug feature: recommended apps
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants