Author: mediawiki
Description:
With the white listing of the <abbr>, the function doMagicLinks() of Parser.php mix <a> and <abbr> together.
Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/User:GuillaumeBeaudoin
• bzimport | |
Mar 20 2010, 5:08 AM |
F6496: doMagicLinks.diff.txt | |
Nov 21 2014, 10:58 PM |
Author: mediawiki
Description:
With the white listing of the <abbr>, the function doMagicLinks() of Parser.php mix <a> and <abbr> together.
Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/User:GuillaumeBeaudoin
ayg wrote:
mediawiki wrote:
<abbr>(fr)</abbr> ISBN 2753300917 [http://bit.ly/bZAjtg La méthode Google]
The <abbr> tag is extensively used on the French wikipedia and the issue have been first found on [[fr:Wikipedia]] by [[fr:User:Manu1400]].
Option A - <a[\w>].*?</a>
Option B - <a[^a-zA-Z0-9].*?</a>
Option C - <a[^[:alnum:]].*?</a>
Altough, I'm not sure what capital letters would do.
ayg wrote:
Committed a modified version in r64113. I went with (<a[ \t\r\n>].*?</a>) in the end, matching the HTML5 spec as far as I'm reading it: http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#before-attribute-name-state Thanks for the patch!
smccandlish wrote:
Woops, typo. Corrected: Since this is fixed, removing Bug #671 as a "blocks" dependency.