From 7d4589bdb0b3aecd291397e26c75b21e6d569c98 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 27 Mar 2019 18:12:34 +0100 Subject: [PATCH] Send valid admin keys to the clients --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 57a9d2413..7cfc8471a 100644 --- a/server.js +++ b/server.js @@ -176,7 +176,7 @@ app.get('/api/config', function(req, res){ admins = (config.adminKeys || []).map(function (k) { k = k.replace(/\/+$/, ''); var s = k.split('/'); - return s[s.length-1]; + return s[s.length-1].replace(/-/g, '/'); }); } catch (e) { console.error("Can't parse admin keys"); } res.setHeader('Content-Type', 'text/javascript');