Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 73910 invoked by uid 500); 25 Nov 2002 15:39:58 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 73899 invoked by uid 500); 25 Nov 2002 15:39:57 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 25 Nov 2002 15:39:57 -0000 Message-ID: <20021125153957.45985.qmail@icarus.apache.org> From: wrowe@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/loggers mod_log_config.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N wrowe 2002/11/25 07:39:57 Modified: modules/loggers mod_log_config.c Log: Accept '%%' in CustomLog format strings to produce a literal '%'. Submitted by: Andr� Malo Revision Changes Path 1.96 +9 -0 httpd-2.0/modules/loggers/mod_log_config.c Index: mod_log_config.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -r1.95 -r1.96 --- mod_log_config.c 16 Sep 2002 12:43:36 -0000 1.95 +++ mod_log_config.c 25 Nov 2002 15:39:56 -0000 1.96 @@ -699,6 +699,15 @@ ++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... */