From c855c096275bd4ea909b8f78d624ebc32007451f Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 25 Nov 2002 15:39:56 +0000 Subject: [PATCH] Accept '%%' in CustomLog format strings to produce a literal '%'. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Submitted by: Andr� Malo git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97644 13f79535-47bb-0310-9956-ffa450edef68 --- modules/loggers/mod_log_config.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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... */ -- 2.40.0