]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - tests/URLDetectionTest.php
Add % and ~ as valid characters in the path, querystring, and fragment parts of URLs
[quix0rs-gnu-social.git] / tests / URLDetectionTest.php
index 767f895bbae4c3c1ec8d7af169a19b95910d4066..fd697c2189062bd52812d2d84e78f07b001bdc10 100644 (file)
@@ -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',