Forums / Bug Reports / [Duplicate] Unsupported call to htmlspecialchars()

[Duplicate] Unsupported call to htmlspecialchars()

Locked

Started by tick on 20 Mar 2011, 6:08 PM · Views: 1,263

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Mar 2011, 6:08 PM
#1
tick avatar

tick

New Zenner

Join Date:
Jun 2007
Location:
Phoenix, AZ
Posts:
66
Plugin Contributions:
0

[Duplicate] Unsupported call to htmlspecialchars()

Hello,

I finally got around to updating to 1.3.9h, and noticed that the list of customer fields on the admin/index.php page contained dates but no names. Upon further investigation, I found that 1.3.9h modified the zen_output_string() function (admin/includes/functions/general.php:38).

The call to htmlspecialchars contains a 4th parameter that is not available until PHP 5.2.3 (see http://php.net/manual/en/function.htmlspecialchars.php). I simply removed the parameter in my installation (the call is on line 40), but a cleaner way would probably be to test the version of PHP and call the htmlspecialchars() with the appropriate parameters.

Other than that, it has been smooth upgrade! Thanks and great work!

Generations Crafting (Our Zen-Cart storefront)
"
And that's just it, Doc - my mind has always been my Achilles' heel!" -- The Tick

20 Mar 2011, 7:19 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: [Duplicate] Unsupported call to htmlspecialchars()

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!

20 Mar 2011, 10:07 PM
#3
tick avatar

tick

New Zenner

Join Date:
Jun 2007
Location:
Phoenix, AZ
Posts:
66
Plugin Contributions:
0

Re: [Duplicate] Unsupported call to htmlspecialchars()

Du-oh! I scanned through the bug reports and didn't see it. Like a typical user I did not RTFM (or release notes thread in this case).

Thanks!

Generations Crafting (Our Zen-Cart storefront)
"
And that's just it, Doc - my mind has always been my Achilles' heel!" -- The Tick