From 7f7aacbdecfa441762c508f8fa104c433b26aee7 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 8 Sep 2013 19:41:14 +0000 Subject: [PATCH] wp_allowed_protocols() should not contain 'data', as it is not safe. see #19354. git-svn-id: https://develop.svn.wordpress.org/trunk@25301 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 87881eb547..8bf892fed4 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -355,4 +355,11 @@ class Tests_Functions extends WP_UnitTestCase { array( array( 1, 2, 3, 4 ), array( -1, 2, '-3', '4' ) ), ); } + + /** + * @ticket 19354 + */ + function test_data_is_not_an_allowed_protocol() { + $this->assertNotContains( 'data', wp_allowed_protocols() ); + } }