From 3460c0955ecf7299908fbe6c1ddba1205f0f0da2 Mon Sep 17 00:00:00 2001 From: mindless Date: Wed, 9 Sep 2009 00:45:49 +0000 Subject: [PATCH] Change escape(this.value) and encode(this.value) calls in checkUrl attributes to encodeURIComponent(this.value). Escape is not sufficient, as it does not encode +. Function encode() in hudson-behavior.js is ok, but we can just use a standard javascript function instead. Marked encode() as deprecated. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21546 71c3de6d-444a-0410-be80-ed276b4c234a Originally-Committed-As: 533b34e19586e4e403a2c6e93bac6bc4b1f28b9c --- .../hudson/security/LDAPSecurityRealm/config.jelly | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly b/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly index d389d38..5074139 100644 --- a/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly +++ b/core/src/main/resources/hudson/security/LDAPSecurityRealm/config.jelly @@ -25,7 +25,7 @@ THE SOFTWARE. + checkUrl="'${rootURL}/securityRealms/LDAPSecurityRealm/serverCheck?field=server&server='+encodeURIComponent(this.value)+'&managerDN='+encodeURIComponent(this.form.elements['ldap.managerDN'].value)+'&managerPassword='+encodeURIComponent(this.form.elements['ldap.managerPassword'].value)"/> @@ -42,13 +42,13 @@ THE SOFTWARE. - \ No newline at end of file +