aboutsummaryrefslogtreecommitdiffstats
path: root/includes/SpecialMovepage.php
diff options
context:
space:
mode:
authorWil Mahan <wmahan@users.mediawiki.org>2004-10-05 00:17:25 +0000
committerWil Mahan <wmahan@users.mediawiki.org>2004-10-05 00:17:25 +0000
commitda2c08db84828628ac56fc4cf7c8a15119db8b0b (patch)
tree5cf417f641315bce4dffee78d53784b6434eaf6f /includes/SpecialMovepage.php
parent4cdd28762857db2dd3ac6128050ae9edd8e10eef (diff)
downloadmediawikicore-da2c08db84828628ac56fc4cf7c8a15119db8b0b.tar.gz
mediawikicore-da2c08db84828628ac56fc4cf7c8a15119db8b0b.zip
Move length check to secureAndSplit(), so it is always used.
Also, don't query the DB for the max length, but use a hardcoded 255.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5686
Diffstat (limited to 'includes/SpecialMovepage.php')
-rw-r--r--includes/SpecialMovepage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php
index 4f0c48d580ab..ebbd79db2a26 100644
--- a/includes/SpecialMovepage.php
+++ b/includes/SpecialMovepage.php
@@ -130,7 +130,7 @@ class MovePageForm {
$nt = Title::newFromText( $this->newTitle );
# don't allow moving to pages with # in
- if ( $nt->getFragment() != '' ) {
+ if ( !$nt || $nt->getFragment() != '' ) {
$this->showForm( wfMsg( "badtitletext" ) );
return;
}