From 5f45adbf56dc86cae6409045118a051e89d12e54 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 7 Jun 2015 15:13:44 -0400 Subject: [PATCH] normalize url --- dashboard-ui/thirdparty/apiclient/connectionmanager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dashboard-ui/thirdparty/apiclient/connectionmanager.js b/dashboard-ui/thirdparty/apiclient/connectionmanager.js index bd17e7003b..120b6237e3 100644 --- a/dashboard-ui/thirdparty/apiclient/connectionmanager.js +++ b/dashboard-ui/thirdparty/apiclient/connectionmanager.js @@ -964,6 +964,9 @@ function normalizeAddress(address) { + // attempt to correct bad input + address = address.trim(); + if (address.toLowerCase().indexOf('http') != 0) { address = "http://" + address; }