Add support for double-quoted cookie values.

JMeter may apparently use this.

git-svn-id: https://modmellon.googlecode.com/svn/trunk@157 a716ebb1-153a-0410-b759-cfb97c6a1b53
This commit is contained in:
olavmrk 2012-05-14 10:14:33 +00:00
parent 1c334c09f1
commit 4925e34369
1 changed files with 10 additions and 0 deletions

View File

@ -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';