Skip to content

Commit f8445be

Browse files
authored
fix: sanitize plugin readme before rendring (Acode-Foundation#1731)
1 parent f1af9dd commit f8445be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/plugin/plugin.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default (props) => {
186186
<div
187187
id="overview"
188188
className="content-section active md"
189-
innerHTML={body}
189+
innerHTML={DOMPurify.sanitize(body)}
190190
></div>
191191
<div id="contributors" className="content-section">
192192
{(() => {

0 commit comments

Comments
 (0)