Skip to content

Commit

Permalink
fix: Incomplete URL scheme check in marked.js
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
sebthom and github-advanced-security[bot] authored Nov 6, 2024
1 parent 3e7240e commit 9b0552f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion org.eclipse.tm4e.markdown/marked.js/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ Renderer.prototype.link = function(href, title, text) {
} catch (e) {
return '';
}
if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {
if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) {
return '';
}
}
Expand Down

0 comments on commit 9b0552f

Please sign in to comment.