Add git:// and mms:// to $wgUrlProtocols
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Mar 2010 19:07:33 +0000 (19:07 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Mar 2010 19:07:33 +0000 (19:07 +0000)
git:// seems like a no-brainer, since we support svn://.  mms:// was
originally a proprietary Microsoft protocol, but they released a spec
and there are multiple open-source implementations, so why not.  Someone
requested the latter on [[WP:VPT]]:

<http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&diff=351780595&oldid=351776934>

No reason to be stingy about adding $wgUrlProtocols default values, if
they don't take scary actions when clicked, right?

RELEASE-NOTES
includes/DefaultSettings.php

index 0acf75f..9a3333a 100644 (file)
@@ -34,6 +34,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   improve page loading speed.
 * Future-proof redirection to fragments in Gecko, so things work a little nicer
   if they fix <https://bugzilla.mozilla.org/show_bug.cgi?id=516293>.
+* Support git:// and mms:// protocols by default for external links
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive without
index 7a2af53..6ac06f9 100644 (file)
@@ -309,6 +309,8 @@ $wgUrlProtocols = array(
        'mailto:',
        'news:',
        'svn://',
+       'git://',
+       'mms://',
 );
 
 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.