]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_session: account for the '&' in identity_concat().
authorYann Ylavic <ylavic@apache.org>
Mon, 1 Mar 2021 20:13:54 +0000 (20:13 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 1 Mar 2021 20:13:54 +0000 (20:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887052 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/session_parsing.txt [new file with mode: 0644]
modules/session/mod_session.c

diff --git a/changes-entries/session_parsing.txt b/changes-entries/session_parsing.txt
new file mode 100644 (file)
index 0000000..a996e82
--- /dev/null
@@ -0,0 +1,2 @@
+  *) mod_session: Improve session parsing.  [Yann Yalvic]
+
index 01f41fe5d0f9a8660de6159daa615af945511030..a41e58444f91b9c49b645224baad696726d61fa8 100644 (file)
@@ -326,7 +326,7 @@ static apr_status_t ap_session_set(request_rec * r, session_rec * z,
 static int identity_count(void *v, const char *key, const char *val)
 {
     int *count = v;
-    *count += strlen(key) * 3 + strlen(val) * 3 + 1;
+    *count += strlen(key) * 3 + strlen(val) * 3 + 2;
     return 1;
 }
 
@@ -362,7 +362,6 @@ static int identity_concat(void *v, const char *key, const char *val)
  */
 static apr_status_t session_identity_encode(request_rec * r, session_rec * z)
 {
-
     char *buffer = NULL;
     int length = 0;
     if (z->expiry) {