The authenticator probably allows the name, but the name gets logged
with the leading space encoded, which affects logfile analysis. This
patch strips leading spaces before storing the name and passing it
to an authenticator.
/*
- * $Id: acl.cc,v 1.229 2001/01/04 03:42:34 wessels Exp $
+ * $Id: acl.cc,v 1.230 2001/01/04 04:01:17 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
debug(28, 6) ("aclDecodeProxyAuth: cleartext = '%s'\n", cleartext);
xstrncpy(buf, cleartext, bufsize);
xfree(cleartext);
+ /* Trim leading whitespace after decoding */
+ while (xisspace(*buf))
+ buf++;
*user = buf;
if ((*password = strchr(*user, ':')) != NULL)
*(*password)++ = '\0';