Make WordPress Core


Ignore:
Timestamp:
06/19/2015 01:52:48 AM (10 years ago)
Author:
azaozz
Message:

Fix using htmlspecialchars() whit the $double_encode parameter. PHP < 5.4 doesn't validate the entities.
Props miqrogroove. Fixes #17780.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/EscHtml.php

    r32850 r32851  
    3535    function test_ignores_existing_entities() {
    3636        $source = '&#038; &#x00A3; &#x22; &amp;';
    37         $res = '&#038; &#x00A3; &#x22; &amp;';
     37        $res = '&#038; &#xA3; &#x22; &amp;';
    3838        $this->assertEquals( $res, esc_html($source) );
    3939    }
Note: See TracChangeset for help on using the changeset viewer.