From eb1ab9b5fc8fc97d00471c8d1d38e9a6d9fc3e68 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sun, 1 Oct 2017 13:54:26 +0100 Subject: [PATCH] spanner! --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 1eb650e..9445d1f 100644 --- a/server.js +++ b/server.js @@ -85,7 +85,7 @@ const bouncer = ['phpmyadmin', function getUrl (req, res) { const theUrl = req.params.encoded_id; logger.debug('Want', theUrl); - if (theUrl === undefined || bouncer.findIndex(theUrl) !== -1 || theUrl === '') { + if (theUrl === undefined || bouncer.indexOf(theUrl) !== -1 || theUrl === '') { logger.warn(`You're not getting in ${theUrl}`); res.status(403);