mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-12 13:48:58 +02:00
fix: sanitize Org previews before trusting rendered HTML
This commit is contained in:
@@ -2961,7 +2961,7 @@ angular
|
||||
suppressSubScriptHandling: true,
|
||||
suppressAutoLink: false,
|
||||
});
|
||||
$scope.content = $sce.trustAsHtml(orgHTMLDocument.toString());
|
||||
$scope.content = $sce.trustAsHtml(DOMPurify.sanitize(orgHTMLDocument.toString()));
|
||||
$scope.type = "html";
|
||||
}
|
||||
if (
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user