From 17d2e8be0668e450f44794495134472028fb40f5 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 16 Jun 2002 17:24:00 +0000 Subject: [PATCH] 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. --- src/access_log.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.47.3