]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Treat blank usernames as not having supplied one at all for logging
authoradrian <>
Mon, 28 Jul 2003 14:57:49 +0000 (14:57 +0000)
committeradrian <>
Mon, 28 Jul 2003 14:57:49 +0000 (14:57 +0000)
purposes.

Bugzilla: 721

src/access_log.cc

index fb6b3dbb2c9998e113562fe510a5a91ff033a03b..773d774f15126f47b1434c56b1a8a04786b1044b 100644 (file)
@@ -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);
 }