Skip to content

Commit

Permalink
fix: #784 iframe js prevent
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Jun 26, 2021
1 parent 04fc6e5 commit 6d4414b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4740,7 +4740,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
if (v) {
for (let i = 0, len = v.length; i < len; i++) {
if (lowLevelCheck && /^class="(?!(__se__|se-|katex))/.test(v[i])) continue;
t += ' ' + (/^href\s*=\s*('|"|\s)*javascript\s*\:/i.test(v[i]) ? '' : v[i]);
t += ' ' + (/^(?:href|src)\s*=\s*('|"|\s)*javascript\s*\:/i.test(v[i]) ? '' : v[i]);
}
}

Expand Down

0 comments on commit 6d4414b

Please sign in to comment.