From ef119763b51119a10851a7a3fb1258c7116a96c0 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 12 Oct 2011 21:01:17 -0700 Subject: Fixes #3747. Using filter_var to check for any valid URI. --- engine/tests/api/helpers.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engine/tests/api') diff --git a/engine/tests/api/helpers.php b/engine/tests/api/helpers.php index 439d5aa46..f48f91faf 100644 --- a/engine/tests/api/helpers.php +++ b/engine/tests/api/helpers.php @@ -74,7 +74,13 @@ class ElggCoreHelpersTest extends ElggCoreUnitTest { $conversions = array( 'http://example.com' => 'http://example.com', 'https://example.com' => 'https://example.com', + 'http://example-time.com' => 'http://example-time.com', + '//example.com' => '//example.com', + 'ftp://example.com/file' => 'ftp://example.com/file', + 'mailto:brett@elgg.org' => 'mailto:brett@elgg.org', + 'javascript:alert("test")' => 'javascript:alert("test")', + 'app://endpoint' => 'app://endpoint', 'example.com' => 'http://example.com', 'example.com/subpage' => 'http://example.com/subpage', -- cgit v1.2.3