Last week, I tried to register for a service and was really surprised by a password limit of 16 characters. Why on earth yould you impose such strict limits? Never heard of correct horse battery staple?

    • Sibbo
      link
      fedilink
      103 months ago

      SELECT * FROM users WHERE name = "$name" OR password = "$password"

    • @[email protected]OP
      link
      fedilink
      6
      edit-2
      3 months ago
      sqlquery = "INSERT INTO users (username, password) VALUES ('" + username + "', '" + password + "')"
      

      What could go wrong?

      • @Gremour
        link
        14
        edit-2
        3 months ago

        Password=a");drop table users;–

        Alas, it’s longer than 16 characters. Protection works!

      • Daemon Silverstein
        link
        fedilink
        English
        33 months ago

        John O’neill always wonder why there are all these strange computer errors around him when he is about to sign up something. Oh, John O’neill, poor guy…