* (bug 11733) Fixed parameter validation in importTextFile.php
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Dec 2008 02:03:36 +0000 (02:03 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Dec 2008 02:03:36 +0000 (02:03 +0000)
RELEASE-NOTES
maintenance/importTextFile.php

index 6870151..55fbb7e 100644 (file)
@@ -430,6 +430,7 @@ The following extensions are migrated into MediaWiki 1.14:
   images which do not specify width and height attributes.
 * (bug 15027) Internet domain names and IP addresses can now be indexed and
   searched sensibly with the default MySQL search backend.
+* (bug 11733) Fixed parameter validation in importTextFile.php
 
 === API changes in 1.14 ===
 
index 5004c3c..0a0068d 100644 (file)
@@ -24,19 +24,19 @@ if( count( $args ) < 1 || isset( $options['help'] ) ) {
                
                $title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename );
                $title = Title::newFromUrl( $title );
-               echo( "\nUsing title '" . $title->getPrefixedText() . "'..." );
                
                if( is_object( $title ) ) {
                        
+                       echo( "\nUsing title '" . $title->getPrefixedText() . "'..." );
                        if( !$title->exists() || !isset( $options['nooverwrite'] ) ) {
                        
                                $text = file_get_contents( $filename );
                                $user = isset( $options['user'] ) ? $options['user'] : 'Maintenance script';
                                $user = User::newFromName( $user );
-                               echo( "\nUsing username '" . $user->getName() . "'..." );
                                
                                if( is_object( $user ) ) {
                                
+                                       echo( "\nUsing username '" . $user->getName() . "'..." );
                                        $wgUser =& $user;
                                        $comment = isset( $options['comment'] ) ? $options['comment'] : 'Importing text file';
                                        $flags = 0 | ( isset( $options['norc'] ) ? EDIT_SUPPRESS_RC : 0 );