(bug 30236) Links like [[//example.com Link text]] were parsed as an internal link...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 12 Aug 2011 13:32:06 +0000 (13:32 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 12 Aug 2011 13:32:06 +0000 (13:32 +0000)
commit7e13964a0285c0e5e8e313a6dd1cd723de1752d8
treeee204917284bb01a14e84cf8a993f900f2a9d385
parentb87c77ebb7f1b763de871c603cb65f69a500460e
(bug 30236) Links like [[//example.com Link text]] were parsed as an internal link rather than an external link surrounded by brackets, like [[example.com Link text]]. Was caused by another pointless \b directly preceding wfUrlProtocols() in a regex. Also add a parser test for the [[http://example.com Link text]] case (the existing test only covered [[http://example.com]]) and add protocol-relative counterparts for both tests.
includes/parser/Parser.php
tests/parser/parserTests.txt