Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: CVS

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

 

 

Apache cvs RSS feed   Index | Next | Previous | View Threaded


sf at apache

Nov 9, 2009, 2:43 AM

Post #1 of 1 (128 views)
Permalink
svn commit: r834013 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c

Author: sf
Date: Mon Nov 9 10:43:16 2009
New Revision: 834013

URL: http://svn.apache.org/viewvc?rev=834013&view=rev
Log:
Also remove trailing whitespace in the value

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=834013&r1=834012&r2=834013&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/loggers/mod_log_config.c (original)
+++ httpd/httpd/trunk/modules/loggers/mod_log_config.c Mon Nov 9 10:43:16 2009
@@ -502,7 +502,7 @@
* This supports Netscape version 0 cookies while being tolerant to
* some properties of RFC2109/2965 version 1 cookies:
* - case-insensitive match of cookie names
- * - white space around the '='
+ * - white space between the tokens
* It does not support the following version 1 features:
* - quoted strings as cookie values
* - commas to separate cookies
@@ -518,7 +518,14 @@
apr_collapse_spaces(name, name);

if (!strcasecmp(name, a) && (value = apr_strtok(NULL, "=", &last2))) {
- value += strspn(value, " \t"); /* Move past WS */
+ char *last;
+ value += strspn(value, " \t"); /* Move past leading WS */
+ last = value + strlen(value);
+ while (last >= value && apr_isspace(*last)) {
+ *last = '\0';
+ --last;
+ }
+
return ap_escape_logitem(r->pool, value);
}
cookies = NULL;

Apache cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.