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

nocte

Well-known member
Look what happens when I do this:

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

test

Shouldn't there be an other error message ("invalid User ID")?
 
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.
 
Back
Top Bottom