diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-10-11 00:25:02 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-10-11 00:25:02 +0300 |
commit | 211984fccbe807d0c5fd35d3eb10e873a256e6cb (patch) | |
tree | ec5b83cb79debde7ab446e1710910d6555329a6d /tests/PHPUnit/Unit | |
parent | 6e86748a39e4d3afcd96500d4f785bd013be577f (diff) |
Better check for valid URLs (#13572)
Diffstat (limited to 'tests/PHPUnit/Unit')
-rw-r--r-- | tests/PHPUnit/Unit/UrlHelperTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/UrlHelperTest.php b/tests/PHPUnit/Unit/UrlHelperTest.php index 369cfb3a34..b14d937451 100644 --- a/tests/PHPUnit/Unit/UrlHelperTest.php +++ b/tests/PHPUnit/Unit/UrlHelperTest.php @@ -51,6 +51,11 @@ class UrlHelperTest extends \PHPUnit_Framework_TestCase array('http://', false), array(' http://', false), array('2fer://', false), + array('javascript://test.com/test', false), + array('javascript://alert', false), + array('vbscript://alert', false), + array('vbscript://alert', false), + array('data://example.com/test', false), ); } |