Revert "Ignore localhost links" (on prefetch)

This reverts commit 29b66ff0ec.

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
This commit is contained in:
Jocelyn Delande 2015-09-29 22:22:45 +02:00
parent 98344b2cac
commit 58aa236dcd

View file

@ -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);