From: hno <> Date: Sun, 16 Jun 2002 17:24:00 +0000 (+0000) Subject: Prevent logging of "blank" user names. If the username is "" then log X-Git-Tag: SQUID_3_0_PRE1~978 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d2e8be0668e450f44794495134472028fb40f5;p=thirdparty%2Fsquid.git Prevent logging of "blank" user names. If the username is "" then log as a dash, assuming the "" usename is a false value from ident or partial authentication. --- diff --git a/src/access_log.cc b/src/access_log.cc index 8678b1cb5c..9aa4188c19 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.73 2002/02/26 08:13:07 hno Exp $ + * $Id: access_log.cc,v 1.74 2002/06/16 11:24:00 hno Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -252,7 +252,7 @@ accessLogSquid(AccessLogEntry * al) (long int) al->cache.size, al->private.method_str, al->url, - user ? user : dash_str, + user && *user ? user : dash_str, al->hier.ping.timedout ? "TIMEOUT_" : "", hier_strings[al->hier.code], al->hier.host,