From e03f7f4db3c23eb5e4b72e62aa8fefd54f1c2355 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 24 Jul 2013 11:49:30 -0700 Subject: [PATCH] CLOUDSTACK-3344: Add LDAP: Fix encoding of '&' character --- ui/scripts/globalSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/globalSettings.js b/ui/scripts/globalSettings.js index 973f07af937..c23c5f877e0 100644 --- a/ui/scripts/globalSettings.js +++ b/ui/scripts/globalSettings.js @@ -298,7 +298,7 @@ array.push("&bindpass=" + todb(args.data.password)); array.push("&hostname=" + todb(args.data.hostname)); array.push("&searchbase=" + todb(args.data.searchbase)); - array.push("&queryfilter=" + todb(args.data.queryfilter)); + array.push("&queryfilter=" + todb(args.data.queryfilter).replace('&', '%26')); array.push("&port=" + todb(args.data.port)); if (args.$form.find('.form-item[rel=ssl]').find('input[type=checkbox]').is(':Checked') == true) {