From 3c77b8388c24fcd8f11c8abf6d5f27e9389136a3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 27 Jun 2016 09:39:25 +0000 Subject: [PATCH] gui: Suggest lower case only folder ID (fixes #3128) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3353 --- gui/default/syncthing/core/syncthingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index ece4e279..d78a684e 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1318,7 +1318,7 @@ angular.module('syncthing.core') $scope.editingExisting = false; $scope.folderEditor.$setPristine(); $http.get(urlbase + '/svc/random/string?length=10').success(function (data) { - $scope.currentFolder.id = data.random.substr(0, 5) + '-' + data.random.substr(5, 5); + $scope.currentFolder.id = (data.random.substr(0, 5) + '-' + data.random.substr(5, 5)).toLowerCase(); $('#editFolder').modal(); }); };