Commit 274d9378 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[BUGFIX] Removes obsolete hmac verify call

parent a550c9af
Pipeline #1769 passed with stages
in 4 minutes and 11 seconds
......@@ -522,19 +522,6 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
$this->view->assign('form', $form);
}
/**
* Disable HMAC validation for createVersionAction to prevent validation
* errors with modified form fields
*
* @return void
*/
public function initializeCreateVersionAction()
{
$this->request->setHmacVerified(TRUE);
}
/**
* Create new version of an extension
*
......@@ -559,7 +546,6 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
if (empty($form['comment'])) {
$this->forwardWithError($this->translate('msg.createVersionCommentEmpty'), 'uploadVersion');
}
// $fileInfo = \T3o\TerFe2\Utility\File::getFileInfo('tx_terfe2_pi1.form.file');
if (empty($fileInfo) || empty($fileInfo['tmp_name']) || $fileInfo['error'] != UPLOAD_ERR_OK) {
$this->forwardWithError($this->translate('msg.createVersionFileEmpty'), 'uploadVersion');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment