From 3a8b823d1aebf30fc394a4eeae4b6babf0c2aeba Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 13 Feb 2018 09:16:38 +0530 Subject: #591 - don't lowercase u:p if entered as part of the portal url --- www/js/WizardCtrl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index e02258ae..b9871407 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -732,7 +732,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ return false; } - $scope.wizard.portalurl = $scope.wizard.portalurl.toLowerCase().trim(); + //$scope.wizard.portalurl = $scope.wizard.portalurl.toLowerCase().trim(); + $scope.wizard.portalurl = $scope.wizard.portalurl.trim(); NVRDataModel.log("Wizard: stripped url:" + $scope.wizard.portalurl); @@ -766,6 +767,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ if (c.host) $scope.wizard.portalurl += c.host; if (c.port) $scope.wizard.portalurl += ":" + c.port; if (c.path) $scope.wizard.portalurl += c.path; + + $scope.wizard.portalurl = $scope.wizard.portalurl.toLowerCase(); NVRDataModel.log("Wizard: normalized url:" + $scope.wizard.portalurl); return true; }; -- cgit v1.2.3