Allow for multiple properties have a null attribute list (bug 309400); r+sr=bienvenu.

This commit is contained in:
dmose%mozilla.org 2005-09-22 23:01:30 +00:00
Родитель facd708671
Коммит 36f1af4c3b
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -201,6 +201,11 @@ nsAbLDAPAttributeMap.prototype = {
for each (var attr in attrArray) { for each (var attr in attrArray) {
// multiple attributes that mapped to the empty string are permitted
if (!attr.length) {
continue;
}
// if we've seen this before, there's a problem // if we've seen this before, there's a problem
if (attrsSeen.indexOf(attr) != -1) { if (attrsSeen.indexOf(attr) != -1) {
throw Components.results.NS_ERROR_FAILURE; throw Components.results.NS_ERROR_FAILURE;