Skip to content
  • David Mudrák's avatar
    d3ea8cbc
    MDL-52831 users: Do not delete Mr. and Mrs. Whitespace accounts · d3ea8cbc
    David Mudrák authored
    Due to imperfect validation of the user registration and profile forms,
    we allowed for firstname and lastname be just a whitespace. On MySQL,
    such a whitespace is not significant for VARCHAR comparison so these
    otherwise valid accounts could be silently deleted.
    
    The patch makes sure that at least one of the checked fields is a real
    empty string before deleting such account.
    d3ea8cbc
    MDL-52831 users: Do not delete Mr. and Mrs. Whitespace accounts
    David Mudrák authored
    Due to imperfect validation of the user registration and profile forms,
    we allowed for firstname and lastname be just a whitespace. On MySQL,
    such a whitespace is not significant for VARCHAR comparison so these
    otherwise valid accounts could be silently deleted.
    
    The patch makes sure that at least one of the checked fields is a real
    empty string before deleting such account.
Loading