Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -405,6 +405,8 @@ |
406 | 406 | |
407 | 407 | $filenamePrefixBlacklist = UploadBase::getFilenamePrefixBlacklist(); |
408 | 408 | # Do the match |
| 409 | + if(!isset($partname)) |
| 410 | + $partname = ''; |
409 | 411 | foreach( $filenamePrefixBlacklist as $prefix ) { |
410 | 412 | if ( substr( $partname, 0, strlen( $prefix ) ) == $prefix ) { |
411 | 413 | $warning .= '<li>' . wfMsgExt( 'filename-bad-prefix', 'parseinline', $prefix ) . '</li>'; |