Skip to content

Commit 2bdc15b

Browse files
valkirilovclaude
andcommitted
fix(i18n): escape command text in Workbench run-confirmation Trans (RI-8275)
The dangerous-command confirmation renders interpolated values through <Trans> with escapeValue off. `db` was escaped but `commands` (user-typed command text) was not, so markup-like input (e.g. angle brackets) could break out of the <bold> span. Escape `commands` via escapeTrans too, matching the previous literal-text rendering behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d52dbf5 commit 2bdc15b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redisinsight/ui/src/pages/workbench/components/wb-view/WBViewWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const WBViewWrapper = () => {
292292
i18nKey="workbench.runConfirm.body"
293293
count={dangerousCommands.length}
294294
values={{
295-
commands: dangerousCommands.join(', '),
295+
commands: escapeTrans(dangerousCommands.join(', ')),
296296
db: escapeTrans(confirmationText),
297297
}}
298298
components={{ bold: <strong /> }}

0 commit comments

Comments
 (0)