(bug 24437) Add nofollow to image link
authorcsteipp <csteipp@wikimedia.org>
Mon, 6 Aug 2012 17:04:07 +0000 (10:04 -0700)
committercsteipp <csteipp@wikimedia.org>
Tue, 7 Aug 2012 16:14:28 +0000 (09:14 -0700)
commit79b4f7943459e2630e9286f6438f8d3aed5c46df
treedf833031c3bc5f309d6b3bf658cf23c9f1bb7ead
parentfd91f098e1ecfb0896ba64e9796033194966dbc5
(bug 24437) Add nofollow to image link

Add Parser's extLinkAttribs attributes when an image has a link
parameter, when generating the html. Currently, these may include
rel="nofollow" and the target attribute.

This will correctly add rel="nofollow", respecting $wgNoFollowLinks,
$wgNoFollowDomainExceptions, and $wgNoFollowNsExceptions settings.

Updated parser tests for expected results, added new tests for
$wgNoFollowLinks and $wgNoFollowDomainExceptions exceptions.

Change-Id: Ib4677760ec78a3f0c4ba781d893e0484cc8db3ed
includes/Linker.php
includes/media/MediaTransformOutput.php
tests/parser/parserTests.txt