From 58aa236dcd6df1011a239568201da41b893e9f84 Mon Sep 17 00:00:00 2001 From: Jocelyn Delande Date: Tue, 29 Sep 2015 22:22:45 +0200 Subject: [PATCH] Revert "Ignore localhost links" (on prefetch) This reverts commit 29b66ff0ec6bdd67c7c3168c383efe00bf94f75f. Rationale: 1) It's not a security feature (abuse of prefetch can be on any server it's not more/less risky on localhost), it's pseudo-security measure 2) It's not to us to judge if it has no use-case (in fact it has, ex: two dev speaking and experimenting about urls of their local site/app instance, local web apps...) refs #388 --- src/plugins/irc-events/link.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/irc-events/link.js b/src/plugins/irc-events/link.js index 8a7cb754..908b7875 100644 --- a/src/plugins/irc-events/link.js +++ b/src/plugins/irc-events/link.js @@ -18,9 +18,6 @@ module.exports = function(irc, network) { var links = []; var split = data.message.split(" "); _.each(split, function(w) { - if (w.match(/^(http|https):\/\/localhost/g)) { - return; - } var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0; if (match) { links.push(w);