Handle non-word characters in repo name (fixes #152)

This commit is contained in:
Jakob Borg committed 2014-04-23 10:04:25 +02:00
1 parent 71684bfa45
commit 3e4d628f54
3 files changed
+6 -17

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
getFailed();
});
$scope.repos.forEach(function (repo) {
$http.get('/rest/model/' + repo.ID).success(function (data) {
$http.get('/rest/model?repo=' + encodeURIComponent(repo.ID)).success(function (data) {
$scope.model[repo.ID] = data;
});
});