Bug 193376 - Account Manager uses random value for ISP's domain if not set.

r/sr=sspitzer@netscape.com
This commit is contained in:
pkw%us.ibm.com 2003-02-27 15:01:03 +00:00
Родитель 3833230211
Коммит bccf03f3bd
1 изменённых файлов: 11 добавлений и 4 удалений

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

@ -68,10 +68,17 @@ function getIspDefaultsForUri(domainURI)
if (!result) return null;
// add this extra attribute which is the domain itself
var domainData = domainURI.split(':');
if (domainData.length > 1)
result.domain = domainData[1];
// The domainURI should be in the format domain:aol.com. (Where
// aol.com is the domain name to use for all email addresses). If
// it does not match this pattern, then it is possible no domain
// has been specified, so we should leave it uninitialized.
if (/^domain:/.test(domainURI)) {
// add this extra attribute which is the domain itself
var domainData = domainURI.split(':');
if (domainData.length > 1) {
result.domain = domainData[1];
}
}
return result;
}