LinkSearch: use default protocol if unsupported
authorElliott Eggleston <ejegg@ejegg.com>
Tue, 17 Sep 2013 00:53:22 +0000 (20:53 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Sat, 16 Nov 2013 18:31:06 +0000 (18:31 +0000)
commit8d4b762e24014ca96970b1ee348f0690858efc72
tree415194c4e65c30339e41085007557b27002eba1f
parentac87e530f5a0fd18d98c58ea63e9bc9bc84c5a5b
LinkSearch: use default protocol if unsupported

Default $protocol to http:// if part of link up to
colon or double-slash isn't in $wgUrlProtocols.

Also simplify elseif condition above - $protocol is
always blank there since neither if block above it
is executed.

Bug: 33029
Change-Id: I66d2c592998c750fe3da937b228fe1387fcd344c
includes/specials/SpecialLinkSearch.php