1. 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

Discussion in 'Resolved Bug Reports' started by nocte, Feb 24, 2016.

  1. nocte

    nocte Member

    Look what happens when I do this:


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

    Chris D XenForo Developer Staff Member

    Are you referring to the message:
    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.
  3. nocte

    nocte Member


    Surely it's not a big thing. Just wanted to report it ;)
  4. digitalpoint

    digitalpoint Well-Known Member

    Might be worthwhile to have a better error message... If you go to a user profile with a user ID under 1, you get the same message about it being posted by a guest. What exactly was posted by a guest here? lol


    "invalid user" would be a better error I think.
  5. Mike

    Mike XenForo Developer Staff Member

    I've fixed this now. It won't generate a link in this case.
    nocte likes this.

Share This Page