Skip to content

Commit

Permalink
fix: fix a issue which markdown component can render meta tag problem
Browse files Browse the repository at this point in the history
which can be xss script code by malicious messages
  • Loading branch information
moonrailgun committed Oct 2, 2024
1 parent 28f76bd commit 9998c57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/shared/i18n/langs/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@
"ke3d797fd": "Drop files to send into current converse",
"ke59ffe49": "Muted, there are {{remain}} left",
"ke6da074f": "The message was withdrawn successfully",
"ke9748e88": "Custom Meta is not supported",
"keb053701": "Copy message text successfully",
"kec46a57f": "Add members",
"kecb51e2c": "Old password",
Expand Down
1 change: 1 addition & 0 deletions client/shared/i18n/langs/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@
"ke3d797fd": "拖放文件以发送到当前会话",
"ke59ffe49": "禁言中, 还剩 {{remain}}",
"ke6da074f": "消息撤回成功",
"ke9748e88": "不支持自定义Meta",
"keb053701": "复制消息文本成功",
"kec46a57f": "添加成员",
"kecb51e2c": "旧密码",
Expand Down
1 change: 1 addition & 0 deletions client/web/src/components/Markdown/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const Markdown: React.FC<{
/>
),
style: () => <div>{t('不支持自定义样式')}</div>,
meta: () => <div>{t('不支持自定义Meta')}</div>,
}),
[]
);
Expand Down

0 comments on commit 9998c57

Please sign in to comment.