Bug #904: %n in log_error crashes apache
| From: | bschaffner at accentonline dot com | Date: | Fri, 06 Nov 1998 19:14:30 +0000 |
| Subject: | Bug #904: %n in log_error crashes apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2254@lists.php.net to get a copy of this message | ||
From: bschaffner@accentonline.com
Operating system: FreeBSD 3.0-RELEASE
PHP version: 3.0.5
PHP Bug Type: Reproduceable crash
Bug description: %n in log_error crashes apache
I thought it was an apache problem, however, aplog_error (actually ap_log_error) in main.c (224)
should escape any % signs before sending the log message to apache. ap_error_log expects a format
string followed by varargs - but we're only ever sending the log message - so we need to do a
find/replace of every % with %% in order to keep apache from crashing.
-brian-
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net