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:
parent
1c334c09f1
commit
4925e34369
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue