Fix for r109720: replace the last two regexes with plain string functions. The regula...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 23 Jan 2012 19:35:05 +0000 (19:35 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 23 Jan 2012 19:35:05 +0000 (19:35 +0000)
commit6db5545f665f022ba01f489d937fce7c2281949a
treec4058562652850304c31977fe3b5130af7f82174
parent2462a1ae71f3bad798be0c73b7220a5625418890
Fix for r109720: replace the last two regexes with plain string functions. The regular expression used for stripping the last path component from the output was inefficient, because PCRE does not optimise "$" anchors correctly. It scans the entire string forwards, instead of scanning backwards starting from the anchor. Passes tests.
includes/GlobalFunctions.php