>Number: 5696 >Category: mod_log-any >Synopsis: printing literal percent (%) in the log files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Feb 03 12:50:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: [EMAIL PROTECTED] >Release: 1.3.6 >Organization: apache >Environment: SunOS 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-1 gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) >Description: I want to print a literal percent (%) sign in the log file. You should be able to do this with an escape (\%)
I tried these in the httpd.conf file: LogFormat "%u\%%h" percenttest LogFormat "%u\\%%h" percenttest LogFormat "%u%%%h" percenttest none worked. >How-To-Repeat: repeat the config given above. >Fix: Add one more case to parse_misc_log_string (in http_log.c), if you see a % immediately after a \, then just copy % to the output. >Release-Note: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]