aboutsummaryrefslogtreecommitdiff
path: root/engine/tests
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-10-12 21:01:17 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-10-12 21:01:17 -0700
commitef119763b51119a10851a7a3fb1258c7116a96c0 (patch)
treee1e39edcc761796dfdc0c9b60574e87233c4de0c /engine/tests
parent56e424e6e629307583418f530e6c31e4011a761b (diff)
downloadelgg-ef119763b51119a10851a7a3fb1258c7116a96c0.tar.gz
elgg-ef119763b51119a10851a7a3fb1258c7116a96c0.tar.bz2
Fixes #3747. Using filter_var to check for any valid URI.
Diffstat (limited to 'engine/tests')
-rw-r--r--engine/tests/api/helpers.php6
1 files changed, 6 insertions, 0 deletions
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',