From 663a1138b425da3f4ec0f00c5e5fe9ab909c3a73 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 18 Dec 2019 12:01:58 -0500 Subject: [PATCH] trim leading spaces from domains --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index ca98795f2..c47c4e450 100644 --- a/server.js +++ b/server.js @@ -214,7 +214,7 @@ app.get('/api/config', function(req, res){ // FIXME don't send websocketURL if websocketPath is provided. deprecated. websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' + websocketPort + '/cryptpad_websocket', - httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^ /, ''), + httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^\s*/, ''), adminEmail: config.adminEmail, adminKeys: admins, inactiveTime: config.inactiveTime,