Mercurial > hg > isophonics-drupal-site
diff core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -563,6 +563,10 @@ ['http://example.com/foo', 'http://example.com/bar', FALSE], ['http://example.com', 'http://example.com/bar', FALSE], ['http://example.com/bar', 'http://example.com/bar/', FALSE], + // Ensure \ is normalised to / since some browsers do that. + ['http://www.example.ca\@example.com', 'http://example.com', FALSE], + // Some browsers ignore or strip leading control characters. + ["\x00//www.example.ca", 'http://example.com', FALSE], ]; }