Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,340
    Plugin Contributions
    55

    Default [Fixed v1.5.1] HTML Entities Converted Incorrectly in Configuration Fields

    If you save a configuration value with double quotes, it will store it in the database as ". If you then go to edit it, you'll see " in the field. When you save it again, it'll be stored as ". Continuing this process will creat " " and so on.

    The fix I've used is to change lines 178 to 182 to the following:
    PHP Code:
          if ($cInfo->set_function) {
            eval(
    '$value_field = ' $cInfo->set_function '"' addslashes(html_entity_decode($cInfo->configuration_value)) . '");');
          } else {
            
    $value_field zen_draw_input_field('configuration_value'addslashes(html_entity_decode($cInfo->configuration_value)), 'size="60"');
          } 

  2. #2
    Join Date
    Jan 2004
    Posts
    58,264
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: HTML Entities Converted Incorrectly in Configuration Fields

    That code suggestion didn't seem to work during testing.

    However, an alternate fix was made, and included in v1.5.1, released today.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. HTML entities in TinyMCE
    By ryska in forum General Questions
    Replies: 1
    Last Post: 22 Sep 2008, 03:53 PM
  2. currency incorrectly converted at paypal via payflow pro
    By tomarriola in forum Addon Payment Modules
    Replies: 20
    Last Post: 2 Jul 2008, 11:33 AM

Bookmarks

Posting Permissions

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