Menu

How do I correct this?

Help
Frumspace
2006-08-23
2012-09-14
  • Frumspace

    Frumspace - 2006-08-23

    I entered an apostrophe as one of the allowed characters in Admin for login names. As soon as someone used an apostrophe, the whole room went down and this message now appears instead of the login page:

    Database error: Invalid SQL: UPDATE c_messages SET message = 'stripslashes(sprintf(L_ENTER_ROM_NOSOUND, "n'eNow770"))' WHERE message = 'stripslashes(sprintf(L_ENTER_ROM, "n'eNow770"))' AND m_time<1156308123 ORDER BY m_time DESC LIMIT 1
    MySQL error: 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'eNow770"))' WHERE message = 'stripslashes(sprintf(L_ENTER_ROM, "n'eNow770"))' AN' at line 1)
    Session halted.


    How do I correct this? Thanks.

     
    • Ciprian Murariu

      Ciprian Murariu - 2006-08-29

      The default list of allowed characters is the one you first found in Admin Panel... No other characters should be used...
      This is the list of chars which will not cause any problems:
      a-zA-Z0-9_.-@#$%^&*()=<>?~|`:

      Of course, I haven't checked all of them, so if someone finds out that one of these cause errors, please let us know!
      Thanks,
      Ciprian

       
    • Ciprian Murariu

      Ciprian Murariu - 2006-08-29

      Don't you ever use the ' character in the username field. As well as \ " or space.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.