You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gr...@apache.org on 2012/04/20 00:20:34 UTC

svn commit: r1328133 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c

Author: gregames
Date: Thu Apr 19 22:20:34 2012
New Revision: 1328133

URL: http://svn.apache.org/viewvc?rev=1328133&view=rev
Log:
PR 53104 - %{abc}C truncates cookies whose values contain '='

Modified:
    httpd/httpd/trunk/modules/loggers/mod_log_config.c

Modified: httpd/httpd/trunk/modules/loggers/mod_log_config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_config.c?rev=1328133&r1=1328132&r2=1328133&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/loggers/mod_log_config.c (original)
+++ httpd/httpd/trunk/modules/loggers/mod_log_config.c Thu Apr 19 22:20:34 2012
@@ -544,10 +544,10 @@ static const char *log_cookie(request_re
         while ((cookie = apr_strtok(cookies, ";", &last1))) {
             char *name = apr_strtok(cookie, "=", &last2);
             if (name) {
-                char *value;
+                char *value = name + strlen(name) + 1;
                 apr_collapse_spaces(name, name);
 
-                if (!strcasecmp(name, a) && (value = apr_strtok(NULL, "=", &last2))) {
+                if (!strcasecmp(name, a)) {
                     char *last;
                     value += strspn(value, " \t");  /* Move past leading WS */
                     last = value + strlen(value) - 1;