From: William A. Rowe Jr Date: Mon, 25 Nov 2002 15:39:56 +0000 (+0000) Subject: Accept '%%' in CustomLog format strings to produce a literal '%'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c855c096275bd4ea909b8f78d624ebc32007451f;p=apache Accept '%%' in CustomLog format strings to produce a literal '%'. Submitted by: Andr� Malo git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97644 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index 33c8a249bd..eadf6fb593 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -699,6 +699,15 @@ static char *parse_log_item(apr_pool_t *p, log_format_item *it, const char **sa) ++s; it->condition_sense = 0; it->conditions = NULL; + + if (*s == '%') { + it->arg = "%"; + it->func = constant_item; + *sa = ++s; + + return NULL; + } + it->want_orig = -1; it->arg = ""; /* For safety's sake... */