Unverified Commit c5b6273b authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix/add exception when message provided does not exists

parent b4d0b4e0
Pipeline #10331 failed with stages
in 55 seconds
......@@ -77,6 +77,10 @@ class Zip
$manifestName = $params['manifest'];
}
if (!in_array($manifestName, scandir($messageDirectory))) {
throw new \core\Exception\BadRequestException("Name of message file does not exists", 400);
}
return $this->messageDirectory . DIRECTORY_SEPARATOR . $manifestName;
}
......
......@@ -620,3 +620,6 @@ msgstr "Une erreur est survenue. Si le problème persiste, veuillez recharger la
msgid "Your query returns too much results, only first results are displayed."
msgstr "Le nombre de résultats retournés est trop important. Veuillez affiner votre recherche."
msgid "Name of message file does not exists"
msgstr "Le nom du fichier de bordereau renseigné n'existe pas"
Supports Markdown
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