ASF Bugzilla – Attachment 37185 Details for
Bug 63434
Multiple Cookie headers combined to one comma-separated header line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Merge cookie headers with semicolons in apr_table_compress()
cookie-merging.patch (text/plain), 1.35 KB, created by
Michael Kaufmann
on 2020-04-20 10:04:43 UTC
(
hide
)
Description:
Merge cookie headers with semicolons in apr_table_compress()
Filename:
MIME Type:
Creator:
Michael Kaufmann
Created:
2020-04-20 10:04:43 UTC
Size:
1.35 KB
patch
obsolete
>Index: tables/apr_tables.c >=================================================================== >--- tables/apr_tables.c (revision 1876740) >+++ tables/apr_tables.c (working copy) >@@ -1102,6 +1102,7 @@ > apr_table_entry_t **last; > int i; > int dups_found; >+ apr_uint32_t cookie_checksum; > > if (flags == APR_OVERLAP_TABLES_ADD) { > return; >@@ -1131,6 +1132,8 @@ > */ > sort_array = table_mergesort(t->a.pool, sort_array, t->a.nelts); > >+ COMPUTE_KEY_CHECKSUM("Cookie", cookie_checksum); >+ > /* Process any duplicate keys */ > dups_found = 0; > sort_next = sort_array; >@@ -1154,6 +1157,11 @@ > apr_table_entry_t **next = last; > char *new_val; > char *val_dst; >+ char separator = ','; >+ if ((*last)->key_checksum == cookie_checksum >+ && !strcasecmp((*last)->key, "Cookie")) { >+ separator = ';'; >+ } > do { > len += strlen((*next)->val); > len += 2; /* for ", " or trailing null */ >@@ -1170,7 +1178,7 @@ > break; > } > else { >- *val_dst++ = ','; >+ *val_dst++ = separator; > *val_dst++ = ' '; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 63434
:
36600
|
36601
| 37185