From f9fa1bf59858331c12a299f22debdab9dba1733c Mon Sep 17 00:00:00 2001 From: rhiokim Date: Mon, 16 Mar 2015 17:20:11 +0900 Subject: [PATCH] blacklist vbscript: fixes #492 --- lib/marked.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/marked.js b/lib/marked.js index 28219168c7..80b451b2f8 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -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 ''; } }