Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -504,13 +504,14 @@ |
505 | 505 | if ( ! $this->mIgnoreWarning ) { |
506 | 506 | $warning = ''; |
507 | 507 | |
| 508 | + if( str_replace( ' ', '_', $basename ) != $filtered ) { |
| 509 | + $warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mDestName ) ).'</li>'; |
| 510 | + } |
| 511 | + |
508 | 512 | global $wgCapitalLinks; |
509 | 513 | if( $wgCapitalLinks ) { |
510 | 514 | $filtered = ucfirst( $filtered ); |
511 | 515 | } |
512 | | - if( $basename != $filtered ) { |
513 | | - $warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mDestName ) ).'</li>'; |
514 | | - } |
515 | 516 | |
516 | 517 | global $wgCheckFileExtensions; |
517 | 518 | if ( $wgCheckFileExtensions ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -38,6 +38,7 @@ |
39 | 39 | === Bug fixes in 1.15 === |
40 | 40 | * Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class) |
41 | 41 | * Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class) |
| 42 | +* (bug 16968) Special:Upload no longer throws useless warnings. |
42 | 43 | |
43 | 44 | == API changes in 1.15 == |
44 | 45 | * (bug 16798) JSON encoding errors for some characters outside the BMP |