Zen Cart Logo
Forums / Bug Reports / [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Locked

Views: 61,664

Results 121 to 140 of 225
This thread is locked. New replies are disabled.
9 Oct 2010, 7:15 AM
#121
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

[Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

The tags are also showing in the Coupon Description (customer can see) of a newly created Discount Coupon. I am using CKEditor.

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Oct 2010, 8:17 AM
#122
lorhan avatar

lorhan

New Zenner

Join Date:
Aug 2004
Posts:
37
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

p1lot:

Well,

I use a lot of HTML tags in my define pages as well as in my product descriptions.

And all < and >'s turn into < or >.

I fixed it already for the define pages, not for the product previews though.

Here the fix for "admin/define_pages_editor.php":
I added line 77 -> http://pastie.org/1191676

I did change all lines and the problem was solved.. Thanks

9 Oct 2010, 8:53 AM
#123
sgp avatar

sgp

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

I had the same problem, followed Linda's instructions. Bingo all fixed. Thanks Linda!

9 Oct 2010, 3:07 PM
#124
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Linda, you're heaven sent. Thank you, Thank you, Thank you. I've been the whole morning trying to figure out how to sort it out this problem, until I saw your post. Thank you!!!

9 Oct 2010, 7:41 PM
#125
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Linda,

I did what you wrote and it worked II guess to a point. In the define pages editor and some ez pages that have html instead of an external or internal link it works

However in the product description pages I set the wording and it appears fine....click preview button and I see all the htm coding inserted within....yet the actual page is displaying normally on the store.

I have a couple of admns that will freak when they see the code like the product description and newsletter section. they will think that the customers will see this too.

Is there something to add to the code to stop the preview from not displaying what it will actually look like.

btw, I use CKEditor

9 Oct 2010, 9:30 PM
#126
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

DarkAngel:

Linda,

I did what you wrote and it worked II guess to a point. In the define pages editor and some ez pages that have html instead of an external or internal link it works

However in the product description pages I set the wording and it appears fine....click preview button and I see all the htm coding inserted within....yet the actual page is displaying normally on the store.

I have a couple of admns that will freak when they see the code like the product description and newsletter section. they will think that the customers will see this too.

Is there something to add to the code to stop the preview from not displaying what it will actually look like.

btw, I use CKEditor

answered in this post

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 Oct 2010, 10:04 PM
#127
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

thanks clyde, I will tell all admins inall stores that they will see this and that it is not going to show up in the store as is seen.

It does look awful and maybe at one time that will be fixed....preview may not be as important as the actual page---if they put formatting in there it is great to actually see what it will look like, as it did before.

10 Oct 2010, 1:51 AM
#128
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

This is only a problem in preview whilst in admin right? So as I don't use any html editors at all I can just skip this whitelist file entirely?

Also- security wise does it make a difference having a whitelist file? In other words does it open a site up to any higher risk of XSS attack?

If no is answer to second question, then I shall add it. Thanks.

10 Oct 2010, 1:56 AM
#129
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

This is only a problem in preview whilst in admin right? So as I don't use any html editors at all I can just skip this whitelist file entirely?
No, you will still see code in the admin preview if you do not add the whitelist you will also see it on the frontend

Zen-Venom Get Bitten

10 Oct 2010, 1:57 AM
#130
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

If you can put up with the pain a tiny bit longer then you may be able to avoid whitelisting altogether with v1.3.9h. We're working on a more convenient option which may make life simpler for everyone.

In the meantime, if you aren't entering any HTML code or encoded text like & via your admin, you won't need to whitelist anything further. If you are entering such content then whitelisting will be needed in the meantime.

.
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.

10 Oct 2010, 1:59 AM
#131
jetx avatar

jetx

Zen Follower

Join Date:
Apr 2006
Posts:
425
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

kobra, Dr Byte: thanks, got it.

10 Oct 2010, 2:51 PM
#132
woodstuff59 avatar

woodstuff59

New Zenner

Join Date:
Jul 2008
Posts:
16
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

I've been through this thread and I can't find the answer to this question.

I am upgrading my site to version g and when I tried to enter info to my main page define pages, it just shows the html.

Here is the site link:

http://www.kanawhaplayers.org/groupieg/

It doesn't matter if I copy code from dreamweaver or use zen's editor.

If this problem has been solved and posted, please point me to the post.

Thanks in advance.

10 Oct 2010, 3:32 PM
#133
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Look at this post #52 in this thread:
http://www.zen-cart.com/forum/showthread.php?p=941839#post941839

and see if that doesn't resolve the problem ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Oct 2010, 3:57 PM
#134
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh:

The current release v1.3.9g was just released with the added Protection and, unfortunately, is too good ... so there is the need for the "white list" at this time ...

This will all be addressed in the next release ...

It takes two seconds to open a blank file and save it as:
/admin/includes/extra_configures/extra_white_list.php

You already have the directory:
/admin/includes/extra_configures/

You want to make a file called:
extra_white_list.php

and load it to the directory:
/admin/includes/extra_configures/

and in that file copy and paste the code posted in thread #52 ...

What this code is doing is excluding certain parts of the code from the extra protection that has been added in v1.3.9g from being applied to certain areas of the Admin so that when you edit the data and enter the HTML code it is not getting this extra protection as it also is protecting you against HTML code that you need to enter in some areas of the Admin ...

For ma part I have a problem that this extra-white-list.php couldn't resolve.

For exemple I have a problem with the "Shipping & returns" file, then I created extra_white_list.php in /admin/includes/extra_configures/ and it didn't work.

Inside i wrote:
$my_whitelist = array('shippinginfo'); -> didn't work
I tried with:
$my_whitelist = array('shippinginfo.php'); -> didn't work
then tried with:
$my_whitelist = array('define_shippinginfo.php'); -> didn't work
tried with:
$my_whitelist = array('define_shippinginfo'); -> didn't work

Then I read to do this with xss_whitelist.php instead of extra-white-list.php -> didn't work

Sorry, may be I missed something?
Could somebody help me?

10 Oct 2010, 4:08 PM
#135
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Create the file as in post #52 ...

This line:

$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html');

Hold the things that are "white listed" so that they work with the issues that are currently being cleaned by the security methods so that they do NOT get cleaned ...

You cannot just make up things for this white list ... they have to be the proper values and the code has to be written properly for the white list to work ...

First, try making the exact file listed in post #52 and then try to Edit the Shipping & Returns as you normally would and save it ... see if that doesn't correct the problem ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Oct 2010, 5:54 PM
#136
frilansreklam avatar

frilansreklam

New Zenner

Join Date:
Sep 2008
Location:
Sweden
Posts:
99
Plugin Contributions:
1

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh:

Create the file as in post #52 ...

This line:

$my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html');

> 
> Hold the things that are "white listed" so that they work with the issues that are currently being cleaned by the security methods so that they do NOT get cleaned ...
> 
> You cannot just make up things for this white list ... they have to be the proper values and the code has to be written properly for the white list to work ...
> 
> First, try making the exact file listed in post #52 and then try to Edit the Shipping & Returns as you normally would and save it ... see if that doesn't correct the problem ...

I wrote before but have been away for the weekend. And I didn't see that you asked me a question.

My note was about this also have problem in **Install SQL Patching**.

Frank also have that problem and DrByte has notice it.

So can you update the fix to include the install sql patching? 

(I fix it by upload it in phpmyadmin but it's good for others before the 1.3.9h is ready).

Swedish Zen Cart Support page http://www.zencart.nu

10 Oct 2010, 6:09 PM
#137
oredayo avatar

oredayo

New Zenner

Join Date:
Oct 2010
Posts:
61
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Ajeh:

Create the file as in post #52 ...

This line:

$my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html');

> 
> Hold the things that are "white listed" so that they work with the issues that are currently being cleaned by the security methods so that they do NOT get cleaned ...
> 
> You cannot just make up things for this white list ... they have to be the proper values and the code has to be written properly for the white list to work ...
> 
> First, try making the exact file listed in post #52 and then try to Edit the Shipping & Returns as you normally would and save it ... see if that doesn't correct the problem ...


WAAAHOUUU!!!!!!!!!!
It works! Thank you very much.
11 Oct 2010, 5:36 AM
#138
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

The newsletters are also showing the HTML tags.
Will the fix also fix that.

11 Oct 2010, 5:54 AM
#139
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Yes it will. That was discussed earlier in the thread.

.
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.

11 Oct 2010, 8:33 AM
#140
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: [Done v1.3.9h] HTML tags show after upgrade to 1.3.9g

Adding 'comments' to the white list for me fixed the problems with order updates showing on the order screen, and the emails that these send :)