follow-up r88171 - fix fatal if suggested filename has illegal character in it.
authorBrian Wolff <bawolff@users.mediawiki.org>
Tue, 16 Aug 2011 05:37:18 +0000 (05:37 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Tue, 16 Aug 2011 05:37:18 +0000 (05:37 +0000)
commit9ccad8e8b3c85e991de6801922a3e86030bcf3f2
tree303aa9ee06b26d2742712bf3550ab9455fa45f2e
parentdbf85a36bd9027fc21a2602707260d634a51960e
follow-up r88171 - fix fatal if suggested filename has illegal character in it.

Check to make sure the title object actual exists, before checking its namespace,
since alll the does this have illegal chars check is done after the does it
start with file: check.

For future note though, when using upload by url feature, the suggested
destination name when you put http://upload.wikimedia.org/wikipedia/commons/e/e0/Petrorhagia_prolifera_%281%29.JPG is illegal, which is probably not very user-friendly (filed as bug 30390)
includes/upload/UploadBase.php