]> granicus.if.org Git - apache/commitdiff
Accept '%%' in CustomLog format strings to produce a literal '%'.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 25 Nov 2002 15:39:56 +0000 (15:39 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 25 Nov 2002 15:39:56 +0000 (15:39 +0000)
Submitted by: Andr� Malo <nd@perlig.de>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97644 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 33c8a249bd2f0b4f11dac975aca04ddeb9a159d2..eadf6fb5936332b8c7fd92f77df4de3c953e76cf 100644 (file)
@@ -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... */