Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,401
    Plugin Contributions
    87

    Default [Fixed v1.5.1] Question about PHP 5.4 change coming to htmlspecialchars/htmlentities

    I noticed, looking through the function list at php.net, that the 3rd parameter (encoding) is going to change its default value at PHP 5.4:
    Code:
    Defines encoding used in conversion. If omitted, the default value for this argument is ISO-8859-1 in versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards.
    Since the majority of the core usage of these functions in Zen Cart use only the first (string) parameter, is someone looking into extending the usage to include the encoding (i.e. CHARSET)?

  2. #2
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,896
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Question about PHP 5.4 change coming to htmlspecialchars/htmlentities

    Hi,

    I have moved this thread into bug reports, as the issue has now entered our change management system
    i.e. we intend to address in an upcoming release

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: [Fixed v1.5.1] Question about PHP 5.4 change coming to htmlspecialchars/htmlentit

    Addressed in v1.5.1 (hence the large list of changed files in v1.5.1)
    .

    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.

 

 

Similar Threads

  1. v154 functions_general.php: htmlspecialchars missing parameters?
    By lat9 in forum General Questions
    Replies: 1
    Last Post: 11 Jan 2015, 12:44 AM
  2. Replies: 2
    Last Post: 20 May 2013, 04:09 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. PhP question about a line of code in includes/classes/order.php
    By dbrewster in forum Managing Customers and Orders
    Replies: 12
    Last Post: 1 Feb 2007, 03:30 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