зеркало из https://github.com/mozilla/pjs.git
fix bug 5137
This commit is contained in:
Родитель
7b335ba202
Коммит
1cca7b8482
|
@ -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 *
|
||||
|
|
Загрузка…
Ссылка в новой задаче