Add wfRemoveDotSegments and unit tests. This is a sane step towards fixing
authorgicode <gicode@localhost>
Wed, 9 Nov 2011 22:44:12 +0000 (22:44 +0000)
committergicode <gicode@localhost>
Wed, 9 Nov 2011 22:44:12 +0000 (22:44 +0000)
commit179f3fdf023eb7c901f7df7fa30af798611274ed
treebcf30c2faa5e5f47ed1200a47244830995c97ce4
parent5199bd7f840e1df7fd35b20c1da6d27c87052d12
Add wfRemoveDotSegments and unit tests.  This is a sane step towards fixing
bug 32168.  This implements RFC3986 Section 5.2.4.
http://tools.ietf.org/html/rfc3986#section-5.2.4

This is important because you need to remove dot segments in order to safely
compare URLs when limiting URLs to a particular path.
RELEASE-NOTES-1.19
includes/GlobalFunctions.php
tests/phpunit/includes/GlobalFunctions/wfRemoveDotSegmentsTest.php [new file with mode: 0644]