Skip to content

Commit

Permalink
Merge pull request markedjs#537 from evilpacket/no-vbscript
Browse files Browse the repository at this point in the history
blacklist vbscript: fixes markedjs#492
  • Loading branch information
chjj committed Jan 25, 2015
2 parents 3e02a69 + 3c19114 commit f49db7c
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 @@ -868,7 +868,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 f49db7c

Please sign in to comment.