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

This commit is contained in:
Jakob Borg
2014-04-23 10:04:07 +02:00
parent 71684bfa45
commit 3e4d628f54
3 changed files with 6 additions and 17 deletions

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;
});
});