Per r90849, factor out most of the code that's duplicated between Parser::getExternal...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Aug 2011 10:18:09 +0000 (10:18 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 20 Aug 2011 10:18:09 +0000 (10:18 +0000)
commitb4ae56dea1a7f3f46c4f872151b0d5f121785271
treecfcb44f6540f7f009f17e88b092f48106169c396
parent6a8cb49f8252fca3caa464fa294ac4488eff468d
Per r90849, factor out most of the code that's duplicated between Parser::getExternalLinkAttribs() and Skin::addToSidebarPlain() into wfMatchesDomainList(). Change a loose comparison to a strict one, and add a FIXME comment about how whitelisting nl.wikipedia.org also whitelists nds-nl.wikipedia.org due to the function's simplistic substring approach.
includes/GlobalFunctions.php
includes/Skin.php
includes/parser/Parser.php