Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2011
    Posts
    32
    Plugin Contributions
    0

    Default Configuration value not saving special characters

    When i tried to save

    Name 1 <email@address1>

    It saved as
    Name 1 &lt;email@address1&gt;

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: Configuration value not saving special characters

    which field did this occur in, and which configuration group?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Configuration value not saving special characters

    @swguy, any of the Email Options email addresses, Layout Settings separators and indents ... the list goes on.

    FWIW, on a couple of upgrade sites, I've added an overriding sanitizer in /admin/extra_datafiles similar to:
    Code:
    $my_sanitizer = AdminRequestSanitizer::getInstance();
    $my_sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', array('configuration_value'));
    to work around that issue.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: Configuration value not saving special characters

    This DOES ring a bell now - is it fixed in 1.5.7?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Configuration value not saving special characters

    Quote Originally Posted by swguy View Post
    This DOES ring a bell now - is it fixed in 1.5.7?
    Nope, it's still present in zc157.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Configuration value not saving special characters

    Huh? Still an issue in 1.5.7? What about: https://github.com/zencart/zencart/pull/2267
    Which was specifically built to address this issue and was incorporated almost a month ago. (was originally setup to incorporate to ZC 1.5.6.) the update sql for ZC 1.5.7 includes commands that would need to be executed to address/prevent the over sanitization of email addresses.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default Re: Configuration value not saving special characters

    Quote Originally Posted by mc12345678 View Post
    Huh? Still an issue in 1.5.7? What about: https://github.com/zencart/zencart/pull/2267
    Which was specifically built to address this issue and was incorporated almost a month ago. (was originally setup to incorporate to ZC 1.5.6.) the update sql for ZC 1.5.7 includes commands that would need to be executed to address/prevent the over sanitization of email addresses.
    I'll need to re-run that update SQL, but note that the issue is not limited to email addresses; it's wherever an 'html special character' is required (like in the layout settings).

    Try, for example, saving Layout Settings->Bread Crumbs Navigation Separator (default value &nbsp;::&nbsp;); it gets saved as &amp;nbsp;::&amp;nbsp;
    Last edited by lat9; 9 Aug 2019 at 04:06 PM.

  8. #8
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Configuration value not saving special characters

    Quote Originally Posted by lat9 View Post
    I'll need to re-run that update SQL, but note that the issue is not limited to email addresses; it's wherever an 'html special character' is required (like in the layout settings).

    Try, for example, saving Layout Settings->Bread Crumbs Navigation Separator (default value &nbsp;::&nbsp;); it gets saved as &amp;nbsp;::&amp;nbsp;
    Yup, and if there was some guidance on what would be considered "acceptable" in such a field, then more could be done at each of the entries. Email was an easy one to target and correct. Otherwise everything is "cleansed" to the maximum extent.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v154 so 1.54 does not support special characters?
    By travbacon in forum General Questions
    Replies: 5
    Last Post: 24 Jun 2015, 01:50 PM
  2. Special Characters not working for SMTPauth password
    By ray-the-otter in forum Bug Reports
    Replies: 2
    Last Post: 6 Oct 2011, 04:38 PM
  3. Special characters not displaying correctly in UTF-8
    By Lagrange in forum Addon Language Packs
    Replies: 8
    Last Post: 16 Nov 2009, 07:42 PM
  4. Special / Saving Amounts not shown in Cart ?
    By renaissanceart in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Dec 2008, 04:17 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