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 41 to 60 of 225
This thread is locked. New replies are disabled.
1 Oct 2010, 6:54 PM
#41
drbyte avatar

drbyte

Sensei

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

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

I can't see any example of that on your site.

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

1 Oct 2010, 7:07 PM
#42
azimpact avatar

azimpact

New Zenner

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

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

Yes, the site was being reveiwed for a gateway so I had to put the text into a banner so they could see a complete site.

The HTML version I had showed the banner and the text but instead after the upgrade, below is exactly what was showing in place of the banner with the 3 shirts across the top when I use HTML instead of the banner image.

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td valign="top"><div align="center"><img src="daisy1.jpg" width="950" height="280" /></div></td>
  </tr>
  <tr>
    <td width="85%" valign="top"><p><strong>The Daisy Girls Beginning</strong><br />
    </p>
      <p></p>
    <p>Daisy Girls wants to promote positive messaging to women and girls that wear the shirts and to the 

people that read them. This line of t-shirts not only gives a positive message; they also inspire and 

motivate you to live the message or as we like to say at Daisy Girls, "Be" the shirt.<br>
      <br>
    </p>
    <p><strong>Quality Shirts</strong></p>
    <p>Daisy Girls shirts are made for women and girls who want a perfect fitting t-shirt with a subtle 

positive message.  Our shirts are made of a super soft, ring-spun cotton AND made in the USA. Let's just 

say that our Daisy Girls t-shirts are like the girls and women who wear them.... Soft, but durable. 

Feminine, but strong. Females of all sizes, shapes and ages will quickly find the Daisy Girls t-shirts to 

be their favorite t-shirts.<br>
      <br>
    </p>
    <p>Women are the strongest force on the planet. I don't know about you, but I am <strong>NOT</strong> 

a "Princess", a "Gold digger", or a "Spoiled Brat". We can do better than that. Buy a shirt, spread the 

word, and let's motivate women and girls to be their best!    <hr /></td>
  </tr>
  
  
</table>

It is not interperting the HTML and displaying the output. It is showing the actual html code. It was not doing this before upgrading.

1 Oct 2010, 9:00 PM
#43
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

Be sure that you applied the fix that I posted concerning both the define pages and banners ...

What you posted appears to work fine on my site ...

NOTE: be sure after adding the fix that you EDIT the broken banner and just save it to fix it ...

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!

1 Oct 2010, 10:24 PM
#44
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

I tried to find a solution in the other forums but im having a hard time. I just upgraded to the most recent zencart today and now i am getting html code in my emails if i use html. It was working find before upgrading today. Can anyone give a solution to the problem.

1 Oct 2010, 10:26 PM
#45
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

Can you elaborate on what "html code in my emails" you're seeing?

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

1 Oct 2010, 10:55 PM
#46
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

This is a sample text i was trying to send:

Rich Text Message:

<p>This is an example of something to send</p><p /><p><a href="http://www.zen-cart.com">http://www.zen-cart.com</a></p> --------------------------------------------------------------------------------

Text-Only Message:

<p>This is an example of something to send</p><p /><p><a href="http://www.zen-cart.com">http://www.zen-cart.com</a></p>

when the email goes through this is what i get html code

1 Oct 2010, 11:51 PM
#47
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

Please i need help, is there a file i need to fix or something, what could cause html code to appear in the actual emails.

2 Oct 2010, 10:48 AM
#48
pageblair avatar

pageblair

Zen Follower

Join Date:
Feb 2010
Location:
ny
Posts:
223
Plugin Contributions:
0

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

I installed 139g (new install) and have the same html tags issue

I created: extra_white_list.php

in it I put:

<?php $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array(); $my_whitelist = array('file_contents'); $global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); uploaded to: extra_confiqures folder still showing tags, Please advise SORRY,SENT IT TO WRONG FOLDER, THANKS FOR THE FIX
2 Oct 2010, 10:53 AM
#49
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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

Be sure you uploaded to the admin/includes/extra_configure folder - I boobooed at first and put it in the catalog side.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

2 Oct 2010, 1:07 PM
#50
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

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

Code works great. Thank you!

But html codes ( <br /><br />) are showing when sending Newsletter and emails.

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

2 Oct 2010, 2:24 PM
#51
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

I need help to resolve this problem, i have been looking through the threads and have not found a solution yet.

I upgraded to v1.3.9g from v1.3.9f yesterday, and when i did my emails in nowing showing html code in the final product for example

when the email comes through it shows:

<p>How are you</p>

in the actual email

i had to switch to text email, but i prefer html so i can send out pictures. Is there a file i can upload again to fix the rich text html editor from showing the code in the actual email.

2 Oct 2010, 2:43 PM
#52
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

NOTE: v1.3.9h has been released, which FIXES the issue, and makes the following workaround UNNECESSARY. The best solution is to upgrade.

Try using for the extra_white_list.php file:
/admin/includes/extra_configures/extra_white_list.php

and put into that file the code:

<?php
$global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
$my_whitelist  = array('file_contents', 'banners_html_text', 'pages_title', 'message_html', 'manufacturers_name', 'symbol_left', 'symbol_right', 'query_string');
$global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist); 

and then try to edit the Define Page or Banner HTML or EZPage Title or Send Email once more and save it to see if this displays correctly ...

NOTE: the file
/admin/includes/extra_configures/extra_white_list.php

is a file that you create for this code ...

NOTE: Updated for Manufactuers Name, Currencies Left Symbol and Currencies Right Symbols and Install SQL Patches

Steps to use the above code:
1 create the file:
/admin/includes/extra_configures/extra_white_list.php

2 add the code posted above

3 FTP the file to your server

4 edit the section where you have the problem and save/update it to correct the issue

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!

2 Oct 2010, 2:54 PM
#53
royal avatar

royal

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
261
Plugin Contributions:
0

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

Linda, You are the best! :smile: Thank you!

Pre-Owned Books and Second Hand Stuff: http://www.onlineyardsale.ca

2 Oct 2010, 3:37 PM
#54
azimpact avatar

azimpact

New Zenner

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

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

Yes, I'm seeing the same thing in emails if you use Mime email true.

I've applied the patch and it works for the other pages, but now the HTML emails are not working.

Any patch for that?

2 Oct 2010, 3:38 PM
#55
azimpact avatar

azimpact

New Zenner

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

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

Also, in the patch code is the ending ?> purposely left off?

2 Oct 2010, 4:10 PM
#56
hottrendz avatar

hottrendz

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

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

Thank You!!!

the extra_white_list.php file, resolved the issue with the email :smile:

2 Oct 2010, 4:23 PM
#57
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

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

azimpact:

Also, in the patch code is the ending ?> purposely left off?
That is fine, the closing php tag is not required

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

2 Oct 2010, 4:30 PM
#58
azimpact avatar

azimpact

New Zenner

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

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

All my issues are now fixed.

I was using the first code that was posted so I was having issues but once I added the last code posted things are working good again.

Thanks for the patch!

3 Oct 2010, 6:31 AM
#59
acpaulley avatar

acpaulley

New Zenner

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

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

Ajeh:

NOTE: the file
/admin/includes/extra_configures/extra_white_list.php

is a file that you create for this code ...

I just created this file using the exact code you have above and uploaded to the folder specified. My site won't load at all now. Admin still works, but the main site no longer renders at all: https://www.plrnichemart.com

3 Oct 2010, 6:40 AM
#60
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

acpaulley:

I just created this file using the exact code you have above and uploaded to the folder specified. My site won't load at all now. Admin still works, but the main site no longer renders at all: https://www.plrnichemart.comMaking the changes discussed in this thread can't break the storefront, since they're only applicable to the admin side.

You must have something else wrong in your storefront files.
ref: https://www.zen-cart.com/tutorials/index.php?article=82

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