While looking at the patch for T97157, I realised that language converter can be tricked in even more ways, by adding conversion rule delimiters.
*sigh*
Basically, -{}- breaks up the string it runs the regex on, so if you insert it in an attribute, then language converter no longer realizes its in the middle of a bunch of html.
Some examples:
-{H|abc=>sr-el:" data-foo="}- {{special:Contributions|target=-{}-abc-{}-}} [[File:"8th Anniversary Celebration" - NARA - 285576.tif|100px|alt=-{n}-abc-{}-]]
(This assumes your language code is set to 'sr', you are viewing the sr-el variant, and you have an image on your wiki with that name).
Interestingly, Sanitizer::safeEncodeAttribute already escapes all the neccesary stuff. So ordinary tags aren't affected.
See also T118755
Patches
- Master (As of July 26, 2016): ,
- REL1_27: ,
- REL1_26: ,
- REL1_23: ,