Great discussion why User-Agent sniffing is bad is on the front page right now...
> well aware of the mess that is browser detection
It's a mess because people use it for other things than statistics. "Use IE5+" era apparently taught developers absolutely nothing.
edit: also want to clarify that I don't blindly use the user-agent string for browser detection and this was a bug in my app code. Nothing to do with my browser detection function which was working properly.