From: Ralf S. Engelschall Date: Thu, 31 Jul 1997 08:29:42 +0000 (+0000) Subject: mod_auth_anon logs multiple times X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfb38eb1814e9e1f2a90f839bfa707949c50d6bc;p=thirdparty%2Fapache%2Fhttpd.git mod_auth_anon logs multiple times PR: 421, 868 Submitted by: Dean Gaudet Reviewed by: Ralf S. Engelschall, Dirk v.Gulik, Ken Coar, Jim Jagielski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78827 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/APACHE_1_2_X/src/CHANGES b/APACHE_1_2_X/src/CHANGES index ae52529fde7..474976dfab6 100644 --- a/APACHE_1_2_X/src/CHANGES +++ b/APACHE_1_2_X/src/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 1.2.2 + *) Anonymous_LogEmail was logging on each subrequest. + [Dean Gaudet] PR#421, PR#868 + *) "force-response-1.0" now only applies to requests which are HTTP/1.0 to begin with. "nokeepalive" now works for HTTP/1.1 clients. Added "downgrade-1.0" which causes Apache to pretend it received a 1.0. diff --git a/APACHE_1_2_X/src/modules/standard/mod_auth_anon.c b/APACHE_1_2_X/src/modules/standard/mod_auth_anon.c index 2a979e61116..2bb90b4d823 100644 --- a/APACHE_1_2_X/src/modules/standard/mod_auth_anon.c +++ b/APACHE_1_2_X/src/modules/standard/mod_auth_anon.c @@ -239,7 +239,7 @@ int anon_authenticate_basic_user (request_rec *r) (strpbrk(".",send_pw) != NULL)) ) ) { - if (sec->auth_anon_logemail) { + if (sec->auth_anon_logemail && r->prev == NULL && r->main == NULL) { ap_snprintf(errstr, sizeof(errstr), "Anonymous: Passwd <%s> Accepted", send_pw ? send_pw : "\'none\'"); log_error (errstr, r->server );