Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Location
    Phoenix, AZ
    Posts
    69
    Plugin Contributions
    0

    Default [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!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: 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: v1.5.5]
    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!

  3. #3
    Join Date
    Jun 2007
    Location
    Phoenix, AZ
    Posts
    69
    Plugin Contributions
    0

    Default Re: 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!

 

 

Similar Threads

  1. v155 Checkout: Comments with htmlspecialchars handling
    By lat9 in forum Bug Reports
    Replies: 6
    Last Post: 13 Oct 2016, 06:37 PM
  2. v154 functions_general.php: htmlspecialchars missing parameters?
    By lat9 in forum General Questions
    Replies: 1
    Last Post: 11 Jan 2015, 12:44 AM
  3. v151 Question about zen_db_output and htmlspecialchars
    By lat9 in forum General Questions
    Replies: 0
    Last Post: 13 Dec 2012, 04:07 PM
  4. v138a PHP Warning: htmlspecialchars() (after enabling SSL)
    By gbdriver in forum General Questions
    Replies: 0
    Last Post: 1 Feb 2012, 05:38 PM
  5. htmlspecialchars() expects at most 3 parameters, 4 given
    By jewelsexports in forum General Questions
    Replies: 2
    Last Post: 10 Mar 2011, 04:00 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR