don't trust MarkedString, #29076

This commit is contained in:
Johannes Rieken
2017-09-29 11:34:17 +02:00
parent 2e4b6ce1c2
commit 38779c0593

View File

@@ -170,7 +170,7 @@ export namespace MarkdownString {
} else if (htmlContent.isMarkdownString(markup)) {
return markup;
} else if (typeof markup === 'string') {
return { value: <string>markup, isTrusted: true };
return { value: <string>markup };
} else {
return { value: '' };
}
@@ -535,4 +535,4 @@ export namespace ProgressLocation {
}
return undefined;
}
}
}