Index: trunk/phase3/includes/SpecialImport.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | |
39 | 39 | if( $wgRequest->wasPosted() && $wgRequest->getVal( 'action' ) == 'submit') { |
40 | 40 | $isUpload = false; |
41 | | - $articleName = htmlspecialchars( $wgRequest->getText( 'articlename' ) ); |
| 41 | + $articleName = $wgRequest->getText( 'articlename' ); |
42 | 42 | $namespace = $wgRequest->getIntOrNull( 'namespace' ); |
43 | 43 | |
44 | 44 | switch( $wgRequest->getVal( "source" ) ) { |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | if( !is_null( $namespace ) ) { |
73 | 73 | $importer->setTargetNamespace( $namespace ); |
74 | 74 | } |
75 | | - if( !is_null( $articleName ) ) { |
| 75 | + if( $articleName !== '' ) { |
76 | 76 | $importer->setTargetArticleName( $articleName ); |
77 | 77 | } |
78 | 78 | $reporter = new ImportReporter( $importer, $isUpload, $interwiki, $frompage ); |
— | — | @@ -527,7 +527,7 @@ |
528 | 528 | * Set a target articlename to override the defaults |
529 | 529 | */ |
530 | 530 | function setTargetArticleName( $articleName ) { |
531 | | - $this->mTargetArticleName = is_null( $articleName ) ? null : $articleName; |
| 531 | + $this->mTargetArticleName = $articleName; |
532 | 532 | } |
533 | 533 | |
534 | 534 | /** |