Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    I upgraded tp 1.57c. I used to be able to add html amd text, now when I do, it updates blank.
    Attached Images Attached Images  

  2. #2
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    312
    Plugin Contributions
    0

    Default Re: HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    1.5.7 has a built in CKEditor. Goto Tools>Define Pages editor and from the Text Editor in the upper right corner, change from Text to CKEditor. This should activate the html editor for your categories.
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    When you say it "updates blank" can you describe what you mean?

    Are you saying that if you newly create a category, you add html to it (while in source mode with ckeditor or when using plain text) save it and then come back to view it that what was entered is completely gone?

    Or are you saying that if you open a category's description that had previously been entered that there is nothing there when viewing?

    Regardless, it would really help to understand how the system came to have the problem it is having. Answering the posting tips issues (each time an issue is initiated) would offer some perspective of why the issue might be occurring. 1.5.7 has been out for a long time and this "basic" issue hasn't been repetitively called out, so not expecting it to be a design issue.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    So I read this which lead me to searching more for an answer at 3 am.

    Let me correct myself. If I enter html code and/or text and save, it comes out everything as text, all the <br><img> whatever, shows up as text. If I go to a previously saved category description before the upgrade and make changes, it will come out as complete text. So as long as I don't make any changes, we are good, but if I do, it screws it all up.

    I noticed this does it in some old plugins that have not been updated where it also has these same fields allowing HTML and text and I assumed it was because it was not updated for the latest version of ZC. But I don't think ZC took this functionality out of this on the admin side for the stock out of the box ZC?

    So I did some researching

    https://docs.zen-cart.com/dev/code/admin_sanitization/

    I did this

    Create a new disable_strict_sanitize.php file in your /admin/includes/extra_configures/

    Now my old plugins work and the admin side category description now saves correctly.

    My question is then, I can understand it not working for some old plugins, but in the newest version of ZC, was this functionality taken out because of security reasons?
    Also after I make my changes, I FTP to the santitze file and change the ext to .bak. But is it okay to leave it as .php or is this a security risk?

  5. #5
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    So, it wasn't taken out of the new version, though there may be an issue with the install... if there is this issue with category description then I would expect the same problem with the product description and several others especially because it works if the sanitization is basically set to off... that at least indicates that it (admin sanitization) is at play even if I thought perhaps it wasn't even installed... it seems like instead that possibly admin/includes/init_includes/init_sanitize.php may have been modified, is otherwise problematic or perhaps is overridden by admin/includes/init_includes/overrides/init_sanitize.php.

    As to the file name changes and such. Will say this about nth degree of security. Any code that remains accessible on the server runs the risk of becoming informative and assistive to someone wanting to be malicious. It is popular to change the file extension to .bak or perhaps .old or any number of other popular extensions. If the code is not to be accessible it should just be removed from the server. It's one thing to rename for a few minutes of testing, but understand a few minutes of testing now, then called away for something and perhaps it remains in place for a really long time.

    Its not super difficult to correct such sanitization for "older" plugins. Recognize what fields are used/populated to support the plugin, then what type of data they should support and apply a filter to manage that software. Yes, in development it could be good to disable the sanitization but there is/was a real risk identified that needed to be addressed. Perhaps could have been done differently sure as some of the core team have said, but it is a functional system that does what was desired of the time.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Mar 2015
    Posts
    165
    Plugin Contributions
    0

    Default Re: HTML no longer allowed in CATEGORY DESCRIPTION in ADMIN SIDE

    fark, i guess i was wrong, even in ckeditor, it will not take, the category description remains blank.

 

 

Similar Threads

  1. Admin automatically re-writes the description html code
    By NadiaUSA in forum General Questions
    Replies: 10
    Last Post: 14 Jul 2011, 01:22 PM
  2. HTML Editor Missing in Product Description (Admin Page)
    By zoombee in forum Basic Configuration
    Replies: 6
    Last Post: 21 May 2011, 09:14 PM
  3. Insert HTML in Category Description
    By eschlosser in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Aug 2009, 05:13 PM
  4. Include an html page in a product description? (server side includes)
    By jwoodall in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Jan 2008, 03:48 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