My latest patch reuses regex already defined in Parser.php. please review @ https://gerrit.wikimedia.org/r/#change,4609
On Thu, Apr 12, 2012 at 10:43 AM, Antoine Musso hashar+wmf@free.fr wrote:
Le 12/04/12 08:33, Roan Kattouw a écrit :
<snip some long regex> > ZOMG. Anyway, what I'd do if I had a MediaWiki clone handy is look through > Sanitizer.php to see if there's anything in there that handles URLs.
Parser.php already has some code when dealing with link= parameter for image tags. That is the code I copy pasted above :-D
-- Antoine "hashar" Musso
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l