Fix importation of weird file names in importTextFiles.php
authorThis, that and the other <at.light@live.com.au>
Fri, 12 Aug 2016 01:17:02 +0000 (11:17 +1000)
committerSam Wilson <sam@samwilson.id.au>
Wed, 21 Sep 2016 04:32:22 +0000 (12:32 +0800)
commit628e3ce69c07f278c2b5b610482b7a37658bdd18
tree923c246f5bb8aba9a6e6bcddb42e889fffe9ebef
parent52f5f388a40e08a76b6c4efc52fedd1c65cc166d
Fix importation of weird file names in importTextFiles.php

When importing a file whose name contains a #, the script would call
e.g. Title::newFromText( '#foo' ), which succeeds (because titles
are allowed to contain fragments) but causes problems when trying
to create the revision.

Also avoid fatals on actual invalid titles.

Bug: T142675
Change-Id: I6b4c8fd8dd09db14c0704c74137e112b292c964a
maintenance/importTextFiles.php