diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-04 17:48:47 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-04 17:48:47 +0000 |
commit | 4facbe02fbe53aafebfd68d88ae09c9ae77f3cd3 (patch) | |
tree | f32e4dab0b461a21a3e1b964b82f8eafdfb5763a /syweb/webclient/components | |
parent | Add matrix-service unit tests. Update angular-mocks. (diff) | |
download | synapse-4facbe02fbe53aafebfd68d88ae09c9ae77f3cd3.tar.xz |
URL encoding bugfix and add more tests.
Diffstat (limited to 'syweb/webclient/components')
-rw-r--r-- | syweb/webclient/components/matrix/matrix-service.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syweb/webclient/components/matrix/matrix-service.js b/syweb/webclient/components/matrix/matrix-service.js index fedfb8910d..5b63fb4a3b 100644 --- a/syweb/webclient/components/matrix/matrix-service.js +++ b/syweb/webclient/components/matrix/matrix-service.js @@ -267,7 +267,7 @@ angular.module('matrixService', []) // get room state for a specific room roomState: function(room_id) { - var path = "/rooms/" + room_id + "/state"; + var path = "/rooms/" + encodeURIComponent(room_id) + "/state"; return doRequest("GET", path); }, |