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 11 Times in 3 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. The Following 4 Users Say Thank You to alexm For This Useful Post:

    ciojennacgalac (16-12-2012),itojessosaspos (23-11-2012),kescotekosek (03-11-2013),lrybuywejewe (26-08-2013)

  3. #2
    Developer Greystoke's Avatar
    Join Date
    Mar 2010
    Posts
    187
    Thanks
    2
    Thanked 499 Times in 113 Posts

    Default

    Email sent with fix.

    Please let me know how you get on with it.

  4. The Following 4 Users Say Thank You to Greystoke For This Useful Post:

    ciojennacgalac (16-12-2012),itojessosaspos (23-11-2012),kescotekosek (03-11-2013),lrybuywejewe (26-08-2013)

Posting Permissions

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