URL encoding bugfix and add more tests.

This commit is contained in:
Kegan Dougal 2014-11-04 17:48:47 +00:00
parent a70765ed90
commit 4facbe02fb
2 changed files with 41 additions and 7 deletions

View file

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