httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject svn commit: r1328133 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c
Date Thu, 19 Apr 2012 22:20:34 GMT
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;



Mime
View raw message