From 615f8703cf04d7f952bf7e86654426d60f42267a Mon Sep 17 00:00:00 2001 From: Dieter Date: Thu, 23 Feb 2017 14:12:31 +0100 Subject: [PATCH] Split the username and password correctly Split the username and password correctly so that the password can contain ':' character. --- lib/connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connect.js b/lib/connect.js index 4f5d3a89..c25430e1 100644 --- a/lib/connect.js +++ b/lib/connect.js @@ -80,7 +80,7 @@ function openFrames(vhost, query, credentials, extraClientProperties) { function credentialsFromUrl(parts) { var user = 'guest', passwd = 'guest'; if (parts.auth) { - var auth = parts.auth.split(':'); + var auth = parts.auth.split(/:(.+)/); user = auth[0]; passwd = auth[1]; }