зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
This commit is contained in:
Родитель
2304781f41
Коммит
3f4de0c31e
|
@ -951,8 +951,8 @@ nsLDAPAutoCompleteSession::InitConnection()
|
|||
|
||||
// host to connect to
|
||||
//
|
||||
nsXPIDLCString host;
|
||||
rv = mServerURL->GetHost(getter_Copies(host));
|
||||
nsCAutoString host;
|
||||
rv = mServerURL->GetAsciiHost(host);
|
||||
if (NS_FAILED(rv)) {
|
||||
FinishAutoCompleteLookup(nsIAutoCompleteStatus::failureItems, rv,
|
||||
UNBOUND);
|
||||
|
@ -988,7 +988,7 @@ nsLDAPAutoCompleteSession::InitConnection()
|
|||
// lookup to occur, and we'll finish the binding of the connection
|
||||
// in the OnLDAPInit() listener function.
|
||||
//
|
||||
rv = mConnection->Init(host, port, 0, selfProxy);
|
||||
rv = mConnection->Init(host.get(), port, 0, selfProxy);
|
||||
if NS_FAILED(rv) {
|
||||
switch (rv) {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче