Skip to content
Snippets Groups Projects
Verified Commit 97379b70 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #9514 check fingerprint without fingerprint mode

parent 6c2a7c16
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,6 @@ elseif (empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
$what .= $res_action['history_msg'][$i];
}
$_SESSION['info'] = $what . ' ';
$_SESSION['cpt_info_basket'] = 0;
if ($_POST['module'] == 'null') {
$_POST['module'] = '';
}
......
......@@ -81,7 +81,7 @@ class AcknowledgementReceiptController
return $response->withStatus(404)->withJson(['errors' => 'Document not found on docserver']);
}
$fingerprint = StoreController::getFingerPrint(['filePath' => $pathToDocument, 'mode' => 'SHA256']);
$fingerprint = StoreController::getFingerPrint(['filePath' => $pathToDocument]);
if (!empty($value['fingerprint']) && $value['fingerprint'] != $fingerprint) {
return $response->withStatus(400)->withJson(['errors' => 'Fingerprints do not match']);
}
......
......@@ -22,7 +22,6 @@ use SrcCore\models\ValidatorModel;
use SrcCore\models\CurlModel;
use AcknowledgementReceipt\models\AcknowledgementReceiptModel;
class ActionMethodController
{
use ActionMethodTraitAcknowledgementReceipt;
......
......@@ -419,7 +419,7 @@ class ResController
return $response->withStatus(404)->withJson(['errors' => 'Document not found on docserver']);
}
$fingerprint = StoreController::getFingerPrint(['filePath' => $pathToDocument, 'mode' => 'SHA256']);
$fingerprint = StoreController::getFingerPrint(['filePath' => $pathToDocument]);
if (!empty($document['fingerprint']) && $document['fingerprint'] != $fingerprint) {
return $response->withStatus(400)->withJson(['errors' => 'Fingerprints do not match']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment