This commit is contained in:
morse%netscape.com 1999-04-19 20:54:23 +00:00
Родитель 7b335ba202
Коммит 1cca7b8482
1 изменённых файлов: 40 добавлений и 40 удалений

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

@ -181,12 +181,12 @@ XP_MakeHTMLDialog2(XPDialogInfo *dialogInfo) {
const nsAutoString html_dlgs = nsAutoString(HTML_DLGS_URL);
if (!NS_FAILED(NS_NewURL(&url, html_dlgs))) {
res = netservice->GetCookieString(url, *nsCookie);
}
/* convert cookie to a C string */
char *cookies = nsCookie->ToNewCString();
char *cookie = PL_strstr(cookies, "htmldlgs=|"); /* get to htmldlgs=| */
if (cookie) {
cookie = cookie + PL_strlen("htmldlgs=|"); /* get passed htmldlgs=| */
/* button name is first item in cookie (up to next verical bar) */
@ -219,11 +219,11 @@ XP_MakeHTMLDialog2(XPDialogInfo *dialogInfo) {
for (int j=0; j<argc; j++) {
XP_FREE(argv[j]);
}
}
delete[] cookies;
}
NS_RELEASE(netservice);
}
}
XPDialogStrings *