From: River Tarnell Date: Tue, 14 Sep 2004 04:57:15 +0000 (+0000) Subject: merge # moving fix from 1.3 X-Git-Tag: 1.5.0alpha1~2011 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=650a5c5ac92268c1f9ff1c1b37ad775d81aa8463;p=lhc%2Fweb%2Fwiklou.git merge # moving fix from 1.3 --- diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index e40d89864c..024390b066 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -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