"Hashar" posted a comment on MediaWiki.r102587. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/102587#c27383
Commit summary for MediaWiki.r102587: 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. Hashar's comment: I have found an implementation for removing dot segment in PEAR. The module is Net::URL2 : http://svn.php.net/viewvc/pear/packages/Net_URL2/trunk/Net/URL2.php?view=markup Look for 'function removeDotSegments'. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
