(Backport of r490156, r499567)
Reviewed by: niq, rpluem, wrowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@539271
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.5
+ *) mod_headers: Allow % at the end of a Header value. PR 36609.
+ [Nick Kew, Ruediger Pluem]
+
*) mod_cache: Use the same cache key throughout the whole request processing
to handle escaped URLs correctly. PR 41475. [Ruediger Pluem]
}
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;
+ if (*s)
+ s++;
+ *sa = s;
return NULL;
}