X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FLinkFilterTest.php;h=9093564fde11a9305bc5224531e4702fe67bd883;hb=36171312ef0e1b9acdea876f300dca8f3ad9982e;hp=68081059f91ec36c86db536eaa1a8ec53ad155aa;hpb=23f5395a8c772d8076ef7033aac43945e963e40c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/LinkFilterTest.php b/tests/phpunit/includes/LinkFilterTest.php index 68081059f9..9093564fde 100644 --- a/tests/phpunit/includes/LinkFilterTest.php +++ b/tests/phpunit/includes/LinkFilterTest.php @@ -125,21 +125,16 @@ class LinkFilterTest extends MediaWikiLangTestCase { array( '', 'gopher://*.test.com/', 'gopher://gopher.test.com/0/v2/vstat' ), array( 'telnet://', '*.test.com', 'telnet://shell.test.com/~home/' ), - // // The following only work in PHP >= 5.3.7, due to a bug in parse_url which eats // the path from the url (https://bugs.php.net/bug.php?id=54180) - // // array( '', 'http://test.com', 'http://test.com/index?arg=1' ), // array( 'http://', '*.test.com', 'http://www.test.com/index?arg=1' ), // array( '' , // 'http://xx23124:__ffdfdef__@www.test.com:12345/dir' , // 'http://name:pass@www.test.com:12345/dir/dir/file.xyz.php#__se__?arg1=_&arg2[]=4rtg' // ), - // - // // Tests for false positives - // array( 'http://', 'test.com', 'http://www.test.com', false ), array( 'http://', 'www1.test.com', 'http://www.test.com', false ), array( 'http://', '*.test.com', 'http://www.test.t.com', false ), @@ -166,13 +161,11 @@ class LinkFilterTest extends MediaWikiLangTestCase { array( '', 'http://test.com:8080/dir/', 'http://test.com:808/dir/', false ), array( '', 'http://test.com/dir/index.html', 'http://test.com/dir/index.php', false ), - // // These are false positives too and ideally shouldn't match, but that // would require using regexes and RLIKE instead of LIKE - // // array( null, 'http://*.test.com', 'http://www.test.com:80', false ), // array( '', 'https://*.wikimedia.org/r/#/q/status:open,n,z', - // 'https://gerrit.wikimedia.org/XXX/r/#/q/status:open,n,z', false ), + // 'https://gerrit.wikimedia.org/XXX/r/#/q/status:open,n,z', false ), ); }