Crap. Letting waterson's string fu help.

This commit is contained in:
dougt%netscape.com 2001-06-22 00:11:30 +00:00
Родитель 3f47926f6a
Коммит 54949b636e
1 изменённых файлов: 5 добавлений и 9 удалений

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

@ -2042,13 +2042,12 @@ SINGSIGN_RememberSignonData
nsIDOMWindowInternal* window)
{
char * strippedRealm;
nsXPIDLCString strippedRealm;
nsCOMPtr<nsIIOService> ioService = do_GetService(NS_IOSERVICE_CONTRACTID);
if (!ioService) return;
ioService->ExtractUrlPart(passwordRealm, nsIIOService::url_Host, 0, 0, &strippedRealm);
ioService->ExtractUrlPart(passwordRealm, nsIIOService::url_Host, 0, 0, getter_Copies(strippedRealm));
if (strippedRealm) {
si_RememberSignonData(dialog, strippedRealm, signonData, window);
nsCRT::free(strippedRealm);
}
}
@ -2158,14 +2157,11 @@ si_RestoreSignonData(nsIPrompt* dialog, const char* passwordRealm, const PRUnich
PUBLIC void
SINGSIGN_RestoreSignonData(nsIPrompt* dialog, const char* passwordRealm, const PRUnichar* name, PRUnichar** value, PRUint32 elementNumber) {
char * strippedRealm;
nsXPIDLCString strippedRealm;
nsCOMPtr<nsIIOService> ioService = do_GetService(NS_IOSERVICE_CONTRACTID);
if (!ioService) return;
ioService->ExtractUrlPart(passwordRealm, nsIIOService::url_Host, 0, 0, &strippedRealm);
if (strippedRealm) {
si_RestoreSignonData(dialog, strippedRealm, name, value, elementNumber);
nsCRT::free(strippedRealm);
}
ioService->ExtractUrlPart(passwordRealm, nsIIOService::url_Host, 0, 0, getter_Copies(strippedRealm));
si_RestoreSignonData(dialog, strippedRealm, name, value, elementNumber);
}
/*