Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Jun 2012
    Posts
    68
    Plugin Contributions
    2

    Default Re: Problems with special characters

    I re-input the value. The bug still hassle. Thank you anyway.

  2. #12
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters

    Quote Originally Posted by DrByte View Post
    Should be resolved by updating these files: https://www.zen-cart.com/showthread....33#post1312333
    Will these files work in 1.5.6c? It looks like they are only good through 1.5.5f.

    I am getting the conversion of & to &...running on XAMPP v3.2.4, PHP 7.3.15, most recent version of windows 10 64 bit.

    I don't have a live site to show you at this time so I'll give you as much as I can to narrow down the issue.

    My custom admin template is based on the Zencart admin/Configuration page.

    A sub page of this is my backup program and one of it's options is to select which category to back up.

    There are radio button selects in the right hand box for each top level category in my catalog...Health & Beauty being one of them.

    When I select Health & Beauty, it returns Health & Beauty in the value column and screws up my script for backing up this category.

    Yes, I can rename it to Health Beauty but prefer Health & Beauty.

    I tried using html_decode in my script but the rest of the script failed even though the html_decode did change the category name correctly.

    Thanks for your help.

  3. #13
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters

    Commenting this out in AdminRequestSanitizer.php makes the problem go away but I don't fully understand the impact of leaving this commented out.

    PHP Code:
        public function setDoStrictSanitization($doStrictSanitize)
        {
            
    /*$this->doStrictSanitization = $doStrictSanitize;*/
        


  4. #14
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters in my Admin

    The problem is not just occurring in my custom admin app.

    Input boxes, check boxes and text boxes throughout admin are affected.

  5. #15
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters

    ...or this in init_sanitze.php

    PHP Code:
    //$sanitizer->setDoStrictSanitization(DO_STRICT_SANITIZATION); 

  6. #16
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Problems with special characters

    Quote Originally Posted by mikeel100 View Post
    ...or this in init_sanitze.php

    PHP Code:
    //$sanitizer->setDoStrictSanitization(DO_STRICT_SANITIZATION); 
    editing the core sanitizer is not a good idea. Creating your own class to add your new fields to a sanitizer group could help you... I did on the fields I created for my site such as products_details.. Documentation can be found here..

    I'm in the middle of upgrading a mod that well have to have one created for it too..
    Dave
    Always forward thinking... Lost my mind!

  7. #17
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters

    Thanks Dave.

    I know very little about classes or the reason and need for all this sanitizing...I'm sure it is security.

    I appreciate the link and will look into it.

    Since this is not happening solely in my admin app, I believe it is an issue that the "Team" needs to address.

    My dev store is not live (home computer only) and will not be for some time.

    I will leave my fix in place until someone can tell me why the entire admin area is affected and what we need to do to fix it.

    If it was just happening in my dev app, I'd dig deeper.

  8. #18
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: Problems with special characters in my Admin

    I got my extra_configures files set up and working but what do I do with the sanitize_debug output?

    Apr-26-2020 05:25:31
    =================================

    Incoming GET Request Array
    (
    [gID] => 31
    [cID] => 555
    [action] => save
    )


    Incoming POST Request Array
    (
    [securityToken] => 8c370e8059fb1a9b47ea59678c097822
    [submitEZ_FEEDS_DEFAULT_CATEGORY] =>
    [configuration_value] => Health & Beauty
    )


    Running Admin Sanitizers

    PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == action

    PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == cID

    PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == gID

    PROCESSING STRICT_SANITIZE_VALUES == securityToken

    PROCESSING STRICT_SANITIZE_VALUES == submitEZ_FEEDS_DEFAULT_CATEGORY

    Outgoing GET Request Array
    (
    [gID] => 31
    [cID] => 555
    [action] => save
    )


    Outgoing POST Request Array
    (
    [securityToken] => 8c370e8059fb1a9b47ea59678c097822
    [submitEZ_FEEDS_DEFAULT_CATEGORY] =>
    [configuration_value] => Health & Beauty
    )


    Apr-26-2020 05:25:31
    =================================

    Incoming GET Request Array
    (
    [gID] => 31
    [cID] => 555
    )


    Incoming POST Request Array
    (
    )


    Running Admin Sanitizers

    PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == cID

    PROCESSING SIMPLE_ALPHANUM_PLUS(GET) == gID

    Outgoing GET Request Array
    (
    [gID] => 31
    [cID] => 555
    )


    Outgoing POST Request Array
    (
    )

    Sorry to be so dense but I really am clueless at this point.

    Thanks.

  9. #19
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Problems with special characters in my Admin

    Quote Originally Posted by mikeel100 View Post
    I got my extra_configures files set up and working but what do I do with the sanitize_debug output?



    Sorry to be so dense but I really am clueless at this point.

    Thanks.
    What do you mean "what do I do with the sanitize_debug output"? Are you asking what to do with the file? How to make it stop generating the file? What the contents of the file are telling you? Can you be a little more specific about the request?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #20
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,691
    Plugin Contributions
    9

    Default Re: Problems with special characters in my Admin

    Quote Originally Posted by mc12345678 View Post
    What do you mean "what do I do with the sanitize_debug output"? Are you asking what to do with the file? How to make it stop generating the file? What the contents of the file are telling you? Can you be a little more specific about the request?
    it seems that DO_DEBUG_SANITIZATION is set to true somewhere.

    i would think setting it to false would address the output.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 28 Jul 2011, 09:23 PM
  2. Share on Facebook - problem with special characters?
    By Kicki in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Nov 2010, 05:53 PM
  3. Special characters messed up in ZC Admin
    By magicpants in forum Installing on a Linux/Unix Server
    Replies: 47
    Last Post: 12 Jun 2010, 10:19 AM
  4. Special characters problems in newsletters editor
    By hhmoeller in forum General Questions
    Replies: 0
    Last Post: 16 Apr 2009, 12:53 PM

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