Introduction
Introduction Statistics Contact Development Disclaimer Help
tModify default handling of cookiepolicy functions - surf - customized build of…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit b87123ac9b8fb9b0d9b129c1268db97441d395f0
parent d4ac9fb6f4b719607fa7ff13a44a78d057d27be5
Author: Quentin Rameau <[email protected]>
Date: Sun, 22 Nov 2015 13:33:28 +0100
Modify default handling of cookiepolicy functions
It's more obvious this way that the default is to always accept cookies
and not the other way around.
Diffstat:
M surf.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -485,12 +485,11 @@ cookiepolicy_get(void)
return WEBKIT_COOKIE_POLICY_ACCEPT_NEVER;
case '@':
return WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY;
+ default: /* fallthrough */
case 'A':
- default:
- break;
+ return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS;
}
- return WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS;
}
char
t@@ -501,12 +500,11 @@ cookiepolicy_set(const WebKitCookieAcceptPolicy p)
return 'a';
case WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY:
return '@';
+ default: /* fallthrough */
case WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS:
- default:
- break;
+ return 'A';
}
- return 'A';
}
const char *
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.