From 650a5c5ac92268c1f9ff1c1b37ad775d81aa8463 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Tue, 14 Sep 2004 04:57:15 +0000 Subject: [PATCH] merge # moving fix from 1.3 --- includes/SpecialMovepage.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1