trim leading spaces from domains
This commit is contained in:
parent
091ffc6070
commit
663a1138b4
@ -214,7 +214,7 @@ app.get('/api/config', function(req, res){
|
|||||||
// FIXME don't send websocketURL if websocketPath is provided. deprecated.
|
// FIXME don't send websocketURL if websocketPath is provided. deprecated.
|
||||||
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
|
websocketURL:'ws' + ((useSecureWebsockets) ? 's' : '') + '://' + host + ':' +
|
||||||
websocketPort + '/cryptpad_websocket',
|
websocketPort + '/cryptpad_websocket',
|
||||||
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^ /, ''),
|
httpUnsafeOrigin: config.httpUnsafeOrigin.replace(/^\s*/, ''),
|
||||||
adminEmail: config.adminEmail,
|
adminEmail: config.adminEmail,
|
||||||
adminKeys: admins,
|
adminKeys: admins,
|
||||||
inactiveTime: config.inactiveTime,
|
inactiveTime: config.inactiveTime,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user