• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed [USER] BB-Code -> negative User-ID

#1
Look what happens when I do this:

Code:
[USER=-123]test[/USER]
test

Shouldn't there be an other error message ("invalid User ID")?
 

Chris D

XenForo developer
Staff member
#2
Are you referring to the message:
This was posted by a guest who does not have a profile to view.
I think the user ID is being cast to an unsigned integer, 0, therefore assuming we're dealing with a guest user.

It's really quite an unexpected thing to happen; usually the user bb code would be generated via a user mention where there's no chance of this happening, but clearly it could be confusing.