rem: searchURI += gQueryURIFormat.replace(/@V/g, escape(gSearchInput.value)); 
add: searchURI += gQueryURIFormat.replace(/@V/g, encodeURIComponent(gSearchInput.value)); 
context: function onEnterInSearchBar(){  ClearCardViewPane();    if (!gQueryURIFormat)    gQueryURIFormat = gPrefs.getComplexValue("mail.addr_book.quicksearchquery.format",                                               Components.interfaces.nsIPrefLocalizedString).data;  var searchURI = GetSelectedDirectory();  if (!searchURI) return;  var sortColumn = gAbView.sortColumn;  var sortDirection = gAbView.sortDirection;  /*   XXX todo, handle the case where the LDAP url   already has a query, like    moz-abldapdirectory://nsdirectory.netscape.com:389/ou=People,dc=netscape,dc=com?(or(Department,=,Applications))  */  if (gSearchInput.value != "") {    // replace all instances of @V with the escaped version    // of what the user typed in the quick search text input    searchURI += gQueryURIFormat.replace(/@V/g, escape(gSearchInput.value));  }  SetAbView(searchURI, sortColumn, sortDirection);    // XXX todo   // this works for synchronous searches of local addressbooks,   // but not for LDAP searches  SelectFirstCard();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5e7848db380e8ce2ebad479c6c7e9b171ee816dd/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js