+ Reply to Thread
Results 1 to 2 of 2

Thread: Bug when username contains ' apostrophe character

  1. #1
    Junior Member alexm's Avatar
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Bug when username contains ' apostrophe character

    We have a user whose username looks like this: re'M'ington

    He gets the following error on accessing the shop:

    Code:
    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 'M'ington', 'm', 're'M'ington', 'sdfsdf@sdfsdf.com', '0', '1')' at line 1
    
    insert into osc_customers (customers_id, customers_username, customers_gender, customers_firstname, customers_email_address, customers_default_address_id, customers_newsletter) VALUES ('800', 're'M'ington', 'm', 're'M'ington', 'sdfsdf@sdfsdf.com', '0', '1')
    
    [TEP STOP]
    Obviously something to do with the ' ' in his username. Any ideas for a fix?

    thanks,

    Alex

  2. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    156
    Thanks
    2
    Thanked 13 Times in 12 Posts

    Default

    Email sent with fix.

    Please let me know how you get on with it.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts