summary refs log tree commit diff
path: root/syweb/webclient/components
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-04 17:48:47 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-04 17:48:47 +0000
commit4facbe02fbe53aafebfd68d88ae09c9ae77f3cd3 (patch)
treef32e4dab0b461a21a3e1b964b82f8eafdfb5763a /syweb/webclient/components
parentAdd matrix-service unit tests. Update angular-mocks. (diff)
downloadsynapse-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.js2
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);
         },