Fix r14202 (!!): this validates the protocol against the regex for the second time...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 12 Jul 2011 20:55:05 +0000 (20:55 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 12 Jul 2011 20:55:05 +0000 (20:55 +0000)
commitec7101610c90d12772aa52c1a09ddee72bcea806
tree6d44fa209fd638bdf13c8c5ce2b62d87dbac3376
parent6a1aef21b69152f38dc2474697070985260f9a29
Fix r14202 (!!): this validates the protocol against the regex for the second time (preg_split has already made sure it matches wfUrlProtocols() so no need), and uses strpos() to validate against a regex (that's just wrong). I'm removing it not because it's useless but because it breaks for URL protocols that don't contain a ':' ('//' in my case) for no reason at all. Found out about this when writing parser tests for it (will commit these in a minute), so yay tests!
includes/parser/Parser.php