Pārlūkot izejas kodu

Fix: Use DOMPurify to filter out dangerous HTML #7668 (#7669)

### What problem does this PR solve?

Fix: Use DOMPurify to filter out dangerous HTML #7668

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.0
balibabu pirms 5 mēnešiem
vecāks
revīzija
d373c46976
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      web/src/pages/chat/markdown-content/index.tsx

+ 1
- 1
web/src/pages/chat/markdown-content/index.tsx Parādīt failu

@@ -50,7 +50,7 @@ const MarkdownContent = ({
const { setDocumentIds, data: fileThumbnails } =
useFetchDocumentThumbnailsByIds();
const contentWithCursor = useMemo(() => {
let text = content;
let text = DOMPurify.sanitize(content);
if (text === '') {
text = t('chat.searching');
}

Notiek ielāde…
Atcelt
Saglabāt