WordPress.org

Make WordPress Core

Changeset 25301


Ignore:
Timestamp:
09/08/2013 07:41:14 PM (6 years ago)
Author:
nacin
Message:

wp_allowed_protocols() should not contain 'data', as it is not safe. see #19354.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r25170 r25301  
    356356        );
    357357    }
     358
     359    /**
     360     * @ticket 19354
     361     */
     362    function test_data_is_not_an_allowed_protocol() {
     363        $this->assertNotContains( 'data', wp_allowed_protocols() );
     364    }
    358365}
Note: See TracChangeset for help on using the changeset viewer.