X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/eb5dc014179415a0e5476e986519ac96c36221f9..3036551977f003d9ef3bc15e682201272f400840:/lib/cookies.c?ds=sidebyside diff --git a/lib/cookies.c b/lib/cookies.c index 585fd7e..bc8e9b0 100644 --- a/lib/cookies.c +++ b/lib/cookies.c @@ -38,7 +38,7 @@ #include "mem.h" #include "log.h" #include "printf.h" -#include "mime.h" +#include "base64.h" #include "configuration.h" #include "kvp.h" #include "rights.h" @@ -198,7 +198,7 @@ char *verify_cookie(const char *cookie, rights_type *rights) { } password = kvp_get(k, "password"); if(!password) password = ""; - if(parse_rights(kvp_get(k, "rights"), rights)) + if(parse_rights(kvp_get(k, "rights"), rights, 1)) return 0; /* construct the expected subject. We re-encode the timestamp and the * password. */