diff options
Diffstat (limited to 'auth_mellon_cookie.c')
-rw-r--r-- | auth_mellon_cookie.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/auth_mellon_cookie.c b/auth_mellon_cookie.c index 102e583..ae1cc63 100644 --- a/auth_mellon_cookie.c +++ b/auth_mellon_cookie.c @@ -113,7 +113,17 @@ const char *am_cookie_get(request_rec *r) */ value += strlen(name) + 1; + /* The cookie value may be double-quoted. */ + if(*value == '"') { + value += 1; + } + buffer = apr_pstrdup(r->pool, value); + end = strchr(buffer, '"'); + if(end) { + /* Double-quoted string. */ + *end = '\0'; + } end = strchr(buffer, ';'); if(end) { *end = '\0'; |