mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
bug 52026, crash when remembering cookie decisions, r=dveditz
This commit is contained in:
parent
26c2aa1f9c
commit
8e6302d6d0
@ -870,11 +870,11 @@ permission_Check(
|
||||
if (rememberChecked) {
|
||||
char * hostname2 = NULL;
|
||||
/* ignore leading periods in host name */
|
||||
while (hostname && (*hostname == '.')) {
|
||||
hostname++;
|
||||
char * hostnameAfterDot = hostname;
|
||||
while (hostnameAfterDot && (*hostnameAfterDot == '.')) {
|
||||
hostnameAfterDot++;
|
||||
}
|
||||
StrAllocCopy(hostname2, hostname);
|
||||
Recycle(hostname);
|
||||
StrAllocCopy(hostname2, hostnameAfterDot);
|
||||
permission_Add(hostname2, permission, type, PR_TRUE);
|
||||
}
|
||||
if (rememberChecked != permission_GetRememberChecked(type)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user