summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-28 16:18:05 -0400
committerEvan Prodromou <evan@status.net>2009-09-29 09:15:11 -0400
commit92ac156cbe588f2fdf86ac8c3391e4057852ac77 (patch)
tree7fe2e5c35e9c8def8506c6b9b322cf6765e96105 /tests
parent00b1242607c62d1737857b7d2fc23ad4d2ce437f (diff)
Add % and ~ as valid characters in the path, querystring, and fragment parts of URLs
Diffstat (limited to 'tests')
-rw-r--r--tests/URLDetectionTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/URLDetectionTest.php b/tests/URLDetectionTest.php
index 767f895bb..fd697c218 100644
--- a/tests/URLDetectionTest.php
+++ b/tests/URLDetectionTest.php
@@ -33,6 +33,10 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
'<a href="http://127.0.0.1:99/" rel="external">127.0.0.1:99</a>'),
array('127.0.0.1/test.php',
'<a href="http://127.0.0.1/test.php" rel="external">127.0.0.1/test.php</a>'),
+ array('127.0.0.1/~test',
+ '<a href="http://127.0.0.1/~test" rel="external">127.0.0.1/~test</a>'),
+ array('127.0.0.1/test%20stuff',
+ '<a href="http://127.0.0.1/test%20stuff" rel="external">127.0.0.1/test%20stuff</a>'),
array('http://[::1]:99/test.php',
'<a href="http://[::1]:99/test.php" rel="external">http://[::1]:99/test.php</a>'),
array('http://::1/test.php',