]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/specials/SpecialUpload.php
MediaWiki 1.17.3
[autoinstallsdev/mediawiki.git] / includes / specials / SpecialUpload.php
index 893e4be2834f05bbd2a5e9a44eb7c77a03942241..96696ab3d229cce50ca02a37e437b5007d51687d 100644 (file)
@@ -109,14 +109,7 @@ class SpecialUpload extends SpecialPage {
 
                // If it was posted check for the token (no remote POST'ing with user credentials)
                $token = $request->getVal( 'wpEditToken' );
-               if( $this->mSourceType == 'file' && $token == null ) {
-                       // Skip token check for file uploads as that can't be faked via JS...
-                       // Some client-side tools don't expect to need to send wpEditToken
-                       // with their submissions, as that's new in 1.16.
-                       $this->mTokenOk = true;
-               } else {
-                       $this->mTokenOk = $wgUser->matchEditToken( $token );
-               }
+               $this->mTokenOk = $wgUser->matchEditToken( $token );
 
                $this->uploadFormTextTop = '';
                $this->uploadFormTextAfterSummary = '';