Prohibit empty page titles at a low level
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 21 Sep 2008 02:53:24 +0000 (02:53 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 21 Sep 2008 02:53:24 +0000 (02:53 +0000)
commit913e0d45277f4993790dcfe8ea5efc614d798452
tree09cce7c6a6bee45eef39167ee964e04c8174fbe0
parentf988687974e0454b0d0e9d08614ad644813af09e
Prohibit empty page titles at a low level

This adds a sanity check to EditPage::doEdit() that throws an exception if the Title's name (sans namespace) is empty.  Apparently the API edit module doesn't handle this error correctly at a high level, as evidenced by page 19405691 on enwiki.  I didn't try to test whether this extra check stops the particular error, but it doesn't hurt in any case.
includes/Article.php