]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Prevent logging of "blank" user names. If the username is "" then log
authorhno <>
Sun, 16 Jun 2002 17:24:00 +0000 (17:24 +0000)
committerhno <>
Sun, 16 Jun 2002 17:24:00 +0000 (17:24 +0000)
as a dash, assuming the "" usename is a false value from ident or partial
authentication.

src/access_log.cc

index 8678b1cb5ca0d8f7af9283cb0bd1587356cb5e25..9aa4188c198369bb1c5fa32f3aa779ea8cc89813 100644 (file)
@@ -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,