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

    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
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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. v155 v1.5.5a Configuration Edit Update HTML Entities
    By rbarbour in forum Bug Reports
    Replies: 8
    Last Post: 5 Sep 2019, 07:55 PM
  2. Replies: 3
    Last Post: 21 Jun 2016, 09:49 PM
  3. v154 HTML Entities
    By lloyd_borrett in forum Bug Reports
    Replies: 6
    Last Post: 18 May 2015, 11:33 PM
  4. 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR