Bug #232453 --> ldap quick search and advanced search does not honor search filters

when applied to the ldap directory properties dialog.

r=dmose
sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2005-11-15 20:09:09 +00:00
Родитель 8fd4f02635
Коммит 3495412b80
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -909,7 +909,7 @@ nsLDAPAutoCompleteSession::StartLDAPSearch()
// no need to AND in an empty search term, so leave prefix and suffix empty
//
nsCAutoString prefix, suffix;
if (!urlFilter.Equals(NS_LITERAL_CSTRING("(objectclass=*)"))) {
if (urlFilter.Length() && !urlFilter.Equals(NS_LITERAL_CSTRING("(objectclass=*)"))) {
// if urlFilter isn't parenthesized, we need to add in parens so that
// the filter works as a term to &