Skip to content

security(compliance-hub): HTML-encode the application name in the export-history action cell (24.05) - #7962

Open
ar2rsawseen wants to merge 1 commit into
release.24.05from
backport/compliance-hub-appname-encode-2405
Open

security(compliance-hub): HTML-encode the application name in the export-history action cell (24.05)#7962
ar2rsawseen wants to merge 1 commit into
release.24.05from
backport/compliance-hub-appname-encode-2405

Conversation

@ar2rsawseen

Copy link
Copy Markdown
Member

Backport of #7961 to release.24.05.

The export/purge history model builds each row's action cell as an HTML string rendered with v-html. The other values are API-encoded, but the application name is read from countlyGlobal, whose values are raw at runtime, so it reached the v-html string unencoded. Encode it with countlyCommon.encodeHtml so it renders as text; only the application name needed it and the display is unchanged.

Identical to #7961. eslint clean.

🤖 Generated with Claude Code

…ort-history action cell

Backport of #7961 to release.24.05.

The export/purge history model builds each row's action cell as an HTML string rendered
with v-html. Other values in that string are API-encoded, but the application name is read
from countlyGlobal, whose values are raw at runtime. Encode it with countlyCommon.encodeHtml
so it renders as text. Only the application name needed encoding; the display is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant