Last modified: 2012-09-10 19:34:09 UTC
Image links pointing to external sites using the File: syntax, (not the <imagelink> extension) are not adding the rel=nofollow attribute to the anchors. Example: [[File:Foo.jpg|alt=Foo|link=http://example.com]] Produces: <a href="http://example.com"><img alt="Foo" src="http://path/to/foo.jpg" border="0" height="22" width="22"></a> Should be: <a href="http://example.com" rel="nofollow"><img alt="Foo" src="http://path/to/foo.jpg" border="0" height="22" width="22"></a> Regular external links [http://example.com Foo] work properly and include the nofollow attribute.
fixed in https://gerrit.wikimedia.org/r/#/c/17817/ .
Created attachment 11026 [details] patch for 1.19 branch
Created attachment 11027 [details] Patch for 1.18 branch
Created attachment 11100 [details] Fix for 1_19 branch Better fix for the REL1_19 branch
Created attachment 11101 [details] Fix for 1_18 branch Improved fix for REL1_18 branch