On Wed, 11 Apr 2012 23:33:53 -0700, Roan Kattouw <roan.kattouw(a)gmail.com>
On Apr 11, 2012 11:01 PM, "Antoine Musso"
const EXT_URL_REGEX =
ZOMG. Anyway, what I'd do if I had a
MediaWiki clone handy is look
Sanitizer.php to see if there's anything in there that handles URLs.
There's always gitweb. For the de-jure standard repo viewer its urls and
navigation is awful (though that's not git's fault, as you can see by some
of the other repo viewers that do it better) but it works.
All we've got in Sanitizer is href="" handling in attribute sanitization.
This case should really be handled by checking against wfUrlProtocols. And
then anything that doesn't match gets sent thorough Title::newFromText.
And anything that further causes Title to return null/false should be
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [