From b0d183070cb24736a2c86993bdec5a6111c6f87e Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 31 May 2013 17:42:40 +0100 Subject: [PATCH] Don't allow < and > in external links --- core/modules/parsers/wikiparser/rules/extlink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/parsers/wikiparser/rules/extlink.js b/core/modules/parsers/wikiparser/rules/extlink.js index 047cc7557..0203434f0 100644 --- a/core/modules/parsers/wikiparser/rules/extlink.js +++ b/core/modules/parsers/wikiparser/rules/extlink.js @@ -26,7 +26,7 @@ exports.types = {inline: true}; exports.init = function(parser) { this.parser = parser; // Regexp to match - this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data):[^\s'"]+(?:\/|\b)/mg; + this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data):[^\s'"<>]+(?:\/|\b)/mg; }; exports.parse = function() {