mod_session: Sessions are encoded as application/x-www-form-urlencoded strings,
however we do not handle the encoding of spaces properly. Fixed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1293889 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.2
+ * mod_session: Sessions are encoded as application/x-www-form-urlencoded
+ strings, however we do not handle the encoding of spaces properly.
+ Fixed. [Graham Leggett]
+
*) Configuration: Example in comment should use a path consistent
with the default configuration. PR 52715.
[Rich Bowen, Jens Schleusener, Rainer Jung]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_session: Sessions are encoded as application/x-www-form-urlencoded strings,
- however we do not handle the encoding of spaces properly. Fixed.
- Trunk patches: http://svn.apache.org/viewvc?rev=1293658&view=rev
- 2.4.x patch: Trunk patch works
- +1: minfrin, trawick, sf
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
*slider = '&';
slider++;
}
- ap_escape_path_segment_buffer(slider, key);
+ ap_escape_urlencoded_buffer(slider, key);
slider += strlen(slider);
*slider = '=';
slider++;
- ap_escape_path_segment_buffer(slider, val);
+ ap_escape_urlencoded_buffer(slider, val);
return 1;
}
if (!val || !*val) {
apr_table_unset(z->entries, key);
}
- else if (!ap_unescape_all(key) && !ap_unescape_all(val)) {
+ else if (!ap_unescape_urlencoded(key) && !ap_unescape_urlencoded(val)) {
if (!strcmp(SESSION_EXPIRY, key)) {
z->expiry = (apr_time_t) apr_atoi64(val);
}