src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 66871c50937eede01d26052ea6e355fbdfb5ab57
Author: Endi S. Dewata <edewata(a)redhat.com>
Date: Sun Mar 28 12:10:04 2010 -0500
Bug 496863 - 'Construct' button creates incorrect referral urls
Resolves: bug 496863
Bug Description: 'Construct' button creates incorrect referral urls
Reviewed by: rmeggins (and pushed by)
Fix Description: The com.netscape.admin.dirserv.panel.LDAPUrlDialog. notifyUpdate()
has been modified to encode the base DN of the LDAP URL.
Platforms tested: F12
diff --git a/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java
b/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java
index c62dc42..85a1184 100644
--- a/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java
+++ b/src/com/netscape/admin/dirserv/panel/LDAPUrlDialog.java
@@ -225,7 +225,7 @@ implements DocumentListener, SuiConstants {
String tdn = _refTargetDNText.getText().trim();
String sUrl = "ldap://" + host + ":" + port;
if (tdn.length() > 0) {
- sUrl += "/" + tdn;
+ sUrl += "/" + LDAPUrl.encode(tdn);
}
try {
_url = new LDAPUrl( sUrl );
Show replies by date