From: adrian <> Date: Mon, 28 Jul 2003 14:57:49 +0000 (+0000) Subject: Treat blank usernames as not having supplied one at all for logging X-Git-Tag: SQUID_3_0_PRE2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90c858f70fed61369487ccd13dd625b1c4335782;p=thirdparty%2Fsquid.git Treat blank usernames as not having supplied one at all for logging purposes. Bugzilla: 721 --- diff --git a/src/access_log.cc b/src/access_log.cc index fb6b3dbb2c..773d774f15 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.90 2003/07/18 12:18:56 hno Exp $ + * $Id: access_log.cc,v 1.91 2003/07/28 08:57:49 adrian Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -255,6 +255,9 @@ accessLogFormatName(const char *name) if (NULL == name) return NULL; + if (name[0] == '\0') + return NULL; + return username_quote(name); }