Fix URL protocol detection regex for file link= parameter
authorThis, that and the other <at.light@live.com.au>
Sat, 16 Aug 2014 12:09:42 +0000 (22:09 +1000)
committerThis, that and the other <at.light@live.com.au>
Sat, 16 Aug 2014 12:09:42 +0000 (22:09 +1000)
commitfb7e8b876aa5bb327b53f4794e37b2016240975c
tree5b1e362df340a03627bc140b4a234b4320085a8d
parent6a826fd6bf2724707c23d1b6f18639bdfc5463e9
Fix URL protocol detection regex for file link= parameter

This regex looked something like /^(?i)bitcoin:|ftp://|ftps://|.../, which
meant the anchoring ^ only applied to the first name. This meant that any
link= value that happened to contain a URL protocol anywhere within it
(e.g. wikinews:Foo containing "news:") got incorrectly matched by this
regex.

Bug: 69317
Change-Id: Ide1c4f64137666db99f8e3b6816df01ef5099c8e
includes/parser/Parser.php