Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2018-10-11 00:25:02 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-10-11 00:25:02 +0300
commit211984fccbe807d0c5fd35d3eb10e873a256e6cb (patch)
treeec5b83cb79debde7ab446e1710910d6555329a6d /tests/PHPUnit/Unit
parent6e86748a39e4d3afcd96500d4f785bd013be577f (diff)
Better check for valid URLs (#13572)
Diffstat (limited to 'tests/PHPUnit/Unit')
-rw-r--r--tests/PHPUnit/Unit/UrlHelperTest.php5
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),
);
}