mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Add codeql comments and small fix (#185931)
This commit is contained in:
@@ -194,7 +194,7 @@ window.addEventListener('message', async event => {
|
||||
const root = document.querySelector('.markdown-body')!;
|
||||
|
||||
const parser = new DOMParser();
|
||||
const newContent = parser.parseFromString(data.content, 'text/html');
|
||||
const newContent = parser.parseFromString(data.content, 'text/html'); // CodeQL [SM03712] This renderers content from the workspace into the Markdown preview. Webviews (and the markdown preview) have many other security measures in place to make this safe
|
||||
|
||||
// Strip out meta http-equiv tags
|
||||
for (const metaElement of Array.from(newContent.querySelectorAll('meta'))) {
|
||||
|
||||
Reference in New Issue
Block a user