From 94d59b2f23a9b4c56e47d0b9d807d51a8892f536 Mon Sep 17 00:00:00 2001 From: "srilatha%netscape.com" Date: Fri, 22 Jun 2001 06:20:05 +0000 Subject: [PATCH] Fix for bug 71247. Changed SetUnicharPref to SetCharPref for ldap url preference. r=dmose, sr=sspitzer, a=blizzard --- .../addrbook/prefs/resources/content/pref-directory-add.js | 4 ++-- mailnews/addrbook/src/nsLDAPPrefsService.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/addrbook/prefs/resources/content/pref-directory-add.js b/mailnews/addrbook/prefs/resources/content/pref-directory-add.js index 20818743937c..f1fded226b38 100644 --- a/mailnews/addrbook/prefs/resources/content/pref-directory-add.js +++ b/mailnews/addrbook/prefs/resources/content/pref-directory-add.js @@ -50,7 +50,7 @@ function fillSettings() { document.getElementById("description").value = prefValue; try{ - prefValue = gPrefInt.CopyUnicharPref(gCurrentDirectoryString +".uri"); + prefValue = gPrefInt.CopyCharPref(gCurrentDirectoryString +".uri"); } catch(ex){ prefValue=""; @@ -259,7 +259,7 @@ function onOK() ldapUrl.scope = 2; } pref_string_title = gPref_string_desc + ".uri"; - gPrefInt.SetUnicharPref(pref_string_title, ldapUrl.spec); + gPrefInt.SetCharPref(pref_string_title, ldapUrl.spec); pref_string_content = results; pref_string_title = gPref_string_desc + ".maxHits"; if (pref_string_content != gMaxHits) { diff --git a/mailnews/addrbook/src/nsLDAPPrefsService.js b/mailnews/addrbook/src/nsLDAPPrefsService.js index 82312d4faa1e..b4c1a115eeea 100644 --- a/mailnews/addrbook/src/nsLDAPPrefsService.js +++ b/mailnews/addrbook/src/nsLDAPPrefsService.js @@ -178,7 +178,7 @@ function () { } ldapUrl.port = port; ldapUrl.scope = 2; - gPrefInt.SetUnicharPref(pref_string + ".uri", ldapUrl.spec); + gPrefInt.SetCharPref(pref_string + ".uri", ldapUrl.spec); /* is this server selected for autocompletion? if yes, convert the preference to mozilla format. Atmost one server is selected for autocompletion.