Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -264,7 +264,7 @@ |
265 | 265 | |
266 | 266 | # Give a notice if the user is uploading a file that has been deleted or moved |
267 | 267 | # Note that this is independent from the message 'filewasdeleted' that requires JS |
268 | | - $desiredTitleObj = Title::newFromText( $this->mDesiredDestName, NS_FILE ); |
| 268 | + $desiredTitleObj = Title::makeTitleSafe( NS_FILE, $this->mDesiredDestName ); |
269 | 269 | $delNotice = ''; // empty by default |
270 | 270 | if ( $desiredTitleObj instanceof Title && !$desiredTitleObj->exists() ) { |
271 | 271 | LogEventsList::showLogExtract( $delNotice, array( 'delete', 'move' ), |