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
path: root/tests
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2018-12-13 08:32:41 +0300
committerGitHub <noreply@github.com>2018-12-13 08:32:41 +0300
commitfbb653568b627866db455a559e27441bc09719d0 (patch)
treeca526ac9908b180b621b693802ac0ccdb3bb9ab6 /tests
parent70533f52dfe5e1a90e056560f46bffb6fd61dd81 (diff)
Reject urls w/ control characters. (#13845)
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Unit/UrlHelperTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/UrlHelperTest.php b/tests/PHPUnit/Unit/UrlHelperTest.php
index 549ed0b5e4..200aed67e2 100644
--- a/tests/PHPUnit/Unit/UrlHelperTest.php
+++ b/tests/PHPUnit/Unit/UrlHelperTest.php
@@ -102,6 +102,8 @@ class UrlHelperTest extends \PHPUnit_Framework_TestCase
array('dAtA://example.com/test', false),
array('data://tel.org/http', false),
array('smstest:456543', false),
+ array(urldecode('javascript://%0D%0Aalert(1)'), false),
+ array(urldecode('http://%0D%0Aalert(1)'), false),
];
}