mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Bail out early from esc_url() if the URL becomes empty after stripping out disallowed characters.
Fixes #28015 Props jesin for the unit test git-svn-id: https://develop.svn.wordpress.org/trunk@33923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -171,5 +171,11 @@ EOT;
|
||||
$this->assertEquals( 'mailto:?body=Hi%20there,%20I%20thought%20you%20might%20want%20to%20sign%20up%20for%20this%20newsletter', $email_link );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 28015
|
||||
*/
|
||||
function test_invalid_charaters() {
|
||||
$this->assertEmpty( esc_url_raw('"^[]<>{}`') );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user