merge # moving fix from 1.3
authorRiver Tarnell <kateturner@users.mediawiki.org>
Tue, 14 Sep 2004 04:57:15 +0000 (04:57 +0000)
committerRiver Tarnell <kateturner@users.mediawiki.org>
Tue, 14 Sep 2004 04:57:15 +0000 (04:57 +0000)
includes/SpecialMovepage.php

index e40d898..024390b 100644 (file)
@@ -122,6 +122,12 @@ class MovePageForm {
                global  $wgUseSquid, $wgRequest;
                $fname = "MovePageForm::doSubmit";
                
+                # don't allow moving to pages with # in
+                if ( strchr( $this->newTitle, '#') !== FALSE ) {
+                        $this->showForm( wfMsg( "badtitletext" ) );
+                        return;
+                }
+
                # Variables beginning with 'o' for old article 'n' for new article
 
                # Attempt to move the article