GUAC-586: Dynamic user page URI components should be encoded.

This commit is contained in:
Michael Jumper
2015-08-28 16:34:57 -07:00
parent 28092b9b23
commit 40ca19fb3a

View File

@@ -91,7 +91,7 @@ angular.module('navigation').factory('userPageService', ['$injector',
if (connection) {
return new PageDefinition(
connection.name,
'/client/c/' + connection.identifier
'/client/c/' + encodeURIComponent(connection.identifier)
);
}
@@ -102,7 +102,7 @@ angular.module('navigation').factory('userPageService', ['$injector',
&& _.isEmpty(connectionGroup.childConnectionGroups)) {
return new PageDefinition(
connectionGroup.name,
'/client/g/' + connectionGroup.identifier
'/client/g/' + encodeURIComponent(connectionGroup.identifier)
);
}