Index: trunk/phase3/includes/SpecialUpload.php |
— | — | @@ -580,8 +580,11 @@ |
581 | 581 | $partname = $file->getName(); |
582 | 582 | $rawExtension = ''; |
583 | 583 | } else { |
584 | | - list( $partname, $rawExtension ) = explode( '.', $file->getName(), 2 ); |
| 584 | + $n = strrpos( $file->getName(), '.' ); |
| 585 | + $rawExtension = substr( $file->getName(), $n + 1 ); |
| 586 | + $partname = substr( $file->getName(), 0, $n ); |
585 | 587 | } |
| 588 | + |
586 | 589 | $sk = $wgUser->getSkin(); |
587 | 590 | |
588 | 591 | if ( $rawExtension != $file->getExtension() ) { |