Tests for an old PHP bug in parse_url
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 17 Dec 2018 18:20:12 +0000 (13:20 -0500)
committerReedy <reedy@wikimedia.org>
Tue, 17 Dec 2019 21:43:19 +0000 (21:43 +0000)
commit95624195af33d2d71f30da7ab4dcae0be434c574
treefd43cdfffd4aaf6e31db6cc10dec085bcf613878
parent3d47388b4faa7fcf4e96ba46acea7dac5c9afbf7
Tests for an old PHP bug in parse_url

It would get confused by URLs with a query portion but no path.

We no longer support any vulnerable versions of PHP, but it would still
be useful to have these tests.

Bug: T212067
Change-Id: I15c15161a668115d68eb2e2f8004826b47148fc1
(cherry picked from commit 489bb4fb981cfe2e81b647c498e329033a4bc72b)
tests/phpunit/includes/GlobalFunctions/wfParseUrlTest.php