[hackers] [surf] Modify default handling of cookiepolicy functions || Quentin Rameau
commit b87123ac9b8fb9b0d9b129c1268db97441d395f0
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Nov 22 13:33:28 2015 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Nov 22 13:33:28 2015 +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.
diff --git a/surf.c b/surf.c
index 1a798ff..842b7ea 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -485,12 +485,11 @@ cookiepolicy_get(void)
return WEBKIT_COOKIE_POLICY_ACCEPT_NEVER;
case '_AT_':
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
_AT_@ -501,12 +500,11 @@ cookiepolicy_set(const WebKitCookieAcceptPolicy p)
return 'a';
case WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY:
return '_AT_';
+ default: /* fallthrough */
case WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS:
- default:
- break;
+ return 'A';
}
- return 'A';
}
const char *
Received on Sun Nov 22 2015 - 15:35:13 CET
This archive was generated by hypermail 2.3.0
: Sun Nov 22 2015 - 15:36:18 CET