summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-02-13 09:16:38 +0530
committerPliable Pixels <pliablepixels@gmail.com>2018-02-13 09:16:38 +0530
commit3a8b823d1aebf30fc394a4eeae4b6babf0c2aeba (patch)
tree749286ccd81c9eb53e84493cdda8bbc399d9eadd
parent4bde447f834a77182683e4f09038a82cfbb43f4f (diff)
#591 - don't lowercase u:p if entered as part of the portal url
-rw-r--r--www/js/WizardCtrl.js5
1 files changed, 4 insertions, 1 deletions
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;
};