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:
parent
98344b2cac
commit
58aa236dcd
@ -18,9 +18,6 @@ module.exports = function(irc, network) {
|
|||||||
var links = [];
|
var links = [];
|
||||||
var split = data.message.split(" ");
|
var split = data.message.split(" ");
|
||||||
_.each(split, function(w) {
|
_.each(split, function(w) {
|
||||||
if (w.match(/^(http|https):\/\/localhost/g)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0;
|
var match = w.indexOf("http://") === 0 || w.indexOf("https://") === 0;
|
||||||
if (match) {
|
if (match) {
|
||||||
links.push(w);
|
links.push(w);
|
||||||
|
Loading…
Reference in New Issue
Block a user