mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Browser window: Handle counting cookies when URLdb gives use none.
This commit is contained in:
parent
b6bac9a81c
commit
0432d95561
@ -4780,8 +4780,11 @@ browser_window_get_ssl_chain(struct browser_window *bw,
|
||||
int browser_window_get_cookie_count(
|
||||
const struct browser_window *bw)
|
||||
{
|
||||
char *cookies = urldb_get_cookie(browser_window_access_url(bw), true);
|
||||
int count = 0;
|
||||
char *cookies = urldb_get_cookie(browser_window_access_url(bw), true);
|
||||
if (cookies == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (char *c = cookies; *c != '\0'; c++) {
|
||||
if (*c == ';')
|
||||
|
Loading…
Reference in New Issue
Block a user