summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-02-18 14:29:56 +0100
committerFrank Karlitschek <frank@owncloud.org>2013-02-18 14:29:56 +0100
commitcb174356e5f85eb20006b49fd8bb0e1295ebd45a (patch)
tree8e31d706e42db5c67c80f65058abf606281ea019 /settings
parent88248b644cdc3af900822cbef7e57103150e5cbf (diff)
downloadnextcloud-server-cb174356e5f85eb20006b49fd8bb0e1295ebd45a.tar.gz
nextcloud-server-cb174356e5f85eb20006b49fd8bb0e1295ebd45a.zip
backport
https://github.com/owncloud/core/pull/1751
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 473b8dba086..9f998ae6298 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -181,7 +181,7 @@ var UserList={
var addGroup = function(group) {
$('select[multiple]').each(function(index, element) {
if ($(element).find('option[value="'+group +'"]').length == 0) {
- $(element).append('<option value="'+group+'">'+group+'</option>');
+ $(element).append('<option value="' + escapeHTML(group) + '">' + escapeHTML(group) + '</option>');
}
})
};