X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/74c929b24b048c9f1e31e17db757ae4195cd7673..dc9cc5d707f5a612938cc9371614cc41c328fda2:/includes/UploadFromStash.php diff --git a/includes/UploadFromStash.php b/includes/UploadFromStash.php deleted file mode 100644 index 8bff3b49..00000000 --- a/includes/UploadFromStash.php +++ /dev/null @@ -1,58 +0,0 @@ -getSessionData('wsUploadData'); - return self::isValidSessionKey( - $request->getInt( 'wpSessionKey' ), - $sessionData - ); - } - - function initialize( $name, $sessionData ) { - /** - * Confirming a temporarily stashed upload. - * We don't want path names to be forged, so we keep - * them in the session on the server and just give - * an opaque key to the user agent. - */ - $this->initialize( $name, - $sessionData['mTempPath'], - $sessionData['mFileSize'], - false - ); - - $this->mFileProps = $sessionData['mFileProps']; - } - function initializeFromRequest( &$request ) { - $sessionKey = $request->getInt( 'wpSessionKey' ); - $sessionData = $request->getSessionData('wsUploadData'); - - $desiredDestName = $request->getText( 'wpDestFile' ); - if( !$desiredDestName ) - $desiredDestName = $request->getText( 'wpUploadFile' ); - - return $this->initialize( $desiredDestName, $sessionData[$sessionKey] ); - } - - /** - * File has been previously verified so no need to do so again. - */ - protected function verifyFile( $tmpfile ) { - return true; - } - /** - * We're here from "ignore warnings anyway" so return just OK - */ - function checkWarnings() { - return array(); - } -}