This commit is contained in:
Martin Donnelly 2017-10-01 13:54:26 +01:00
parent 007d2c8de1
commit eb1ab9b5fc

View File

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