httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r490156 - /httpd/httpd/trunk/modules/metadata/mod_headers.c
Date Mon, 25 Dec 2006 17:40:10 GMT
Author: niq
Date: Mon Dec 25 09:40:10 2006
New Revision: 490156

URL: http://svn.apache.org/viewvc?view=rev&rev=490156
Log:
PR#36609 - permit % as the last character of a Header value

Modified:
    httpd/httpd/trunk/modules/metadata/mod_headers.c

Modified: httpd/httpd/trunk/modules/metadata/mod_headers.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/metadata/mod_headers.c?view=diff&rev=490156&r1=490155&r2=490156
==============================================================================
--- httpd/httpd/trunk/modules/metadata/mod_headers.c (original)
+++ httpd/httpd/trunk/modules/metadata/mod_headers.c Mon Dec 25 09:40:10 2006
@@ -305,8 +305,8 @@
     }
     s++; /* skip the % */
 
-    /* Pass through %% as % */
-    if (*s == '%') {
+    /* Pass through %% or % at end of string as % */
+    if ((*s == '%') || (*s == '\0')) {
         tag->func = constant_item;
         tag->arg = "%";
         *sa = ++s;



Mime
View raw message