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

Won't Fix Minor bug: Possible to enter negative number in birthday field

Discussion in 'Resolved Bug Reports' started by SchmitzIT, Dec 11, 2013.

  1. SchmitzIT

    SchmitzIT Well-Known Member

    It's for some reason possible to enter a negative number in the "Day" field for the birthday:

  2. Mike

    Mike XenForo Developer Staff Member

    This gets cast to 0 when submitting, which essentially counts it as you not entering anything (which means it doesn't get updated, but the rest of the things do).

    In general, you'll see quite a lot of "unsigned integer" casting that may behave this way. I suppose we could apply type=number and a min=1 value here, though that might have knock on effects and it's certainly not something we're going to do in general.

    As such, I don't see anything to change here.

Share This Page