Skip to content

Commit

Permalink
blacklist vbscript: fixes markedjs#492
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiokim committed Mar 16, 2015
1 parent 1c594f4 commit f9fa1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ Renderer.prototype.link = function(href, title, text) {
} catch (e) {
return '';
}
if (prot.indexOf('javascript:') === 0) {
if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {
return '';
}
}
Expand Down

0 comments on commit f9fa1bf

Please sign in to comment.