If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / HTML tags in configuration fields

HTML tags in configuration fields

Started by zcfan on 5 Sep 2019, 11:53 AM · Views: 11,923

Results 1 to 7 of 7
5 Sep 2019, 11:53 AM
#1
zcfan avatar

zcfan

New Zenner

Join Date:
Jul 2018
Posts:
2
Plugin Contributions:
0

HTML tags in configuration fields

Hi,

I recently updated from 1.5.1 to 1.5.6c and noticed i cant update my configuration fields content from the admin area.
In Configuration - My Store menu i used html content (url and more) in some fields but now after save this content change

< symbol changed to < and > to >

and the store front shows it as plain text not as html so the url in the text does not work just swows as a simple text.

Bigest problem i want to use some js code in that field and with <script> in the content save process break with an error.
"Not Acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security."

I use TM temlate and it has custom block where i want to use html and jquery in the content block. I set zen_cfg_textarea( in set_function field in configuration table and transform the input field to textare but the html code breaks too.

How can i override this? Thanks for any help!

5 Sep 2019, 6:41 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: HTML tags in configuration fields

That was fixed in 1.5.1 and, supposedly, fixed again in 1.5.5a. You might want to check the files in this thread against the same on your site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Sep 2019, 6:46 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: HTML tags in configuration fields

I think this is still a bug.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

5 Sep 2019, 6:53 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: HTML tags in configuration fields

Yep, still a problem. Issue entered:
https://github.com/zencart/zencart/issues/2794

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

3 Sep 2022, 7:45 AM
#5
jeff_crawford avatar

jeff_crawford

New Zenner

Join Date:
Oct 2015
Posts:
1
Plugin Contributions:
0

Re: HTML tags in configuration fields

I am also having this problem in the Configuration - E-Mail Options - Send Copy of Order Confirmation Emails To screen. For example when entering email addresses for Copy of Order Confirmation, Fred Smith [email protected] turns into Fred Smith [email protected] It does this on all E-Mail configuration fields.

I have ZenCart Version: v1.5.6c and PHP Version: 7.4 on Bluehost.

I discovered this several months ago when I stopped receiving copies of order confirmation emails. I can set it back the way it should be and they change instantly when I click update. The strange part is that I will receive the next copy of the order confirmation email and then stop receiving them.

Any suggestions for a work around or fix would be greatly appreciated.

3 Sep 2022, 10:15 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: HTML tags in configuration fields

@JeffCrawford you need to update; this is fixed in 1.5.7.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

6 Sep 2022, 1:38 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: HTML tags in configuration fields

Understand also that there are countless threads in the forum about this topic which could be followed to temporarily restore email functionality while also working on the upgrade.

The issue comes down to that there is code that was incorporated to sanitize entries made from the admin. That code was indiscriminate about such characters in an email address (a field expected to have characters such as < and >). Because code makes those changes to the data going into the database, a temporary fix is to directly write to the database the content desired or needed.

Again, the site should be upgraded, but that shouldn't also prevent the site from functioning or making money.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...