logging blank usernames

From: Adrian Chadd <adrian@dont-contact.us>
Date: Sun, 27 Jul 2003 22:42:36 -0600

Hi,

A few accounting-style parsing scripts here at uni are breaking because
there's a few ad-programs which try authenticating with a blank username.

I poked Robert about it, he thinks a blank username should just be logged
as -. Obviously the auth attempt fails.

(I don't knwo whether its a bug or an intended behaviour. Hm.)

Anyway, here's the one line patch:

- user1 ? user1 : dash_str,
+ user1 ? (user1[0] == '\0' ? dash_str : user1) : dash_str,

What do people think?

Adrian
Received on Sun Jul 27 2003 - 22:42:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:17 MST