git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103446
13f79535-47bb-0310-9956-
ffa450edef68
[Remove entries to the current 2.0 section below, when backported]
+ *) mod_headers: Allow %% in header values to represent a literal %.
+ [André Malo]
+
*) mod_headers: Allow env clauses also for 'echo' and 'unset' actions.
[André Malo]
return parse_misc_string(p, tag, sa);
}
s++; /* skip the % */
+
+ /* Pass through %% as % */
+ if (*s == '%') {
+ tag->func = constant_item;
+ tag->arg = "%";
+ *sa = ++s;
+ return NULL;
+ }
+
tag->arg = '\0';
/* grab the argument if there is one */
if (*s == '{') {
char dummy[2];
dummy[0] = s[-1];
dummy[1] = '\0';
- return apr_pstrcat(p, "Unrecognized Header or RequestHeader directive %",
- dummy, NULL);
+ return apr_pstrcat(p, "Unrecognized header format %", dummy, NULL);
}
tag->func = tag_handler;