summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-04-23 10:04:07 +0200
committerJakob Borg <jakob@nym.se>2014-04-23 10:04:25 +0200
commit3e4d628f547baf3cc0c9cdf83408472a04801951 (patch)
tree34f50d2be6f062c87f24b6a021a9747959aaa996 /gui
parent71684bfa45b4b16949f2c6f1de0fb693c1cf13e2 (diff)
Handle non-word characters in repo name (fixes #152)
Diffstat (limited to 'gui')
-rw-r--r--gui/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/app.js b/gui/app.js
index 854a12268c..1e487f9389 100644
--- a/gui/app.js
+++ b/gui/app.js
@@ -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;
});
});