Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Admin automatically re-writes the description html code

    Normally I don't mind if the admin wants to re write the HTML code in the description box but I was Horrified to find my IMG links in HTML were re written to show the location of my admin.

    It went from:
    www.mysite.com/images.myimg.jpg

    to:
    www.mysite.com/adminlocation/images/myimg.com

    This is a security risk! If i didn't catch it anyone could have looked at the src of the broken img and gleaned my admin location.

    any thoughts?
    Nadia

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin automatically re-writes the description html code

    That's a consequence of some webbrowser-based HTML editors.

    Safer to enter the HTML by hand.

    Or use a different editor that doesn't do that.
    .
    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.

  3. #3
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Re: Admin automatically re-writes the description html code

    I used the HTML option in zencart to enter HTML in the description box. U sed the HTML toggle to enter the code by hand.

    It worked fine. Then I revisited the product without touching the code and re saved and updated. Thats when it decided to re write my code. I guess it tried to validate or it wasnt happy that it cant populate the images in a table if the link is not pointing to the admin's IMAGES folder. I had all imaged pointing correctly to the main IMAGES folder.

    I wouldnt mind using another editor...any advice on FTPing the description field.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin automatically re-writes the description html code

    Quote Originally Posted by NadiaUSA View Post
    I wouldnt mind using another editor...
    There are a few in the Addons area. Whether they do what you want is something you'll need to check out for yourself.
    Quote Originally Posted by NadiaUSA View Post
    any advice on FTPing the description field.
    Not a built-in option, since FTP deals with files, and your products are stored in database records, not in separate files.
    .
    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.

  5. #5
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Re: Admin automatically re-writes the description html code

    It should be a security patch that when it validated the HTML it is forbiden from ever disclosing the admin url. For instance it should not comply with a request to link to images in the admin's IMAGE folder without perhaps scrambling the url like in the product download pub folder.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin automatically re-writes the description html code

    We've fixed that in the next upcoming version ... by removing that old outdated HTMLarea editor altogether. You can do the same yourself by deleting it from your /editors/ folder.
    .
    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.

  7. #7
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Re: Admin automatically re-writes the description html code

    When can I get my hands on that Beta?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin automatically re-writes the description html code

    When it's ready.
    .
    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.

  9. #9
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    82
    Plugin Contributions
    0

    Default Re: Admin automatically re-writes the description html code

    Ok, put me on the beta list if one is available please.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin automatically re-writes the description html code

    Subscribe yourself to the News and Announcements section of the forum if you want notification.

    In the meantime you have other options as mentioned.
    .
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 admin, I put html code at product description, but it shows text format at front page
    By peter888 in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 16 Dec 2013, 02:15 PM
  2. Replies: 2
    Last Post: 14 Dec 2013, 05:49 PM
  3. HTML code in Product Description
    By irishshopper in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Apr 2010, 01:51 AM
  4. Replies: 2
    Last Post: 22 Aug 2009, 06:07 PM
  5. strange html code in product description
    By nilsen in forum General Questions
    Replies: 0
    Last Post: 31 Jan 2009, 11:09 PM

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