(bug 29497) To support protocol-relative URLs in external links, add '//' to $wgUrlPr...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 7 Jul 2011 18:26:24 +0000 (18:26 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 7 Jul 2011 18:26:24 +0000 (18:26 +0000)
commit4b36056ac95f848e1d4ca688414e6e1ca7fd6467
treeef6fc72624fda8e30343435e9c1156ef1972d932
parente41d79c12581d6d94ac17dc1ec1b78f0b8931a63
(bug 29497) To support protocol-relative URLs in external links, add '//' to $wgUrlProtocols and remove a useless \b in the bracketed external link regex in the parser that prevented the former from working outright. With this change, things like [//example.com/wiki/Foo Bar] are now supported, and [[{fullurl:Foo|action=edit}} Bar] no longer breaks if $wgServer is set to '//example.com' but produces a protocol-relative link instead. Protocol-relative URLs in free text are not picked up and turned into [1] links like URLs with protcols are; this is probably due to another \b somewhere, but I think this is a good thing.
includes/DefaultSettings.php
includes/parser/Parser.php