Commit a7e4b08d authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Merge branch 'hotfix/2.3.5' into 'develop'

Hotfix/2.3.5 develop

See merge request maarch/thirdPartyArchiving!59
parents 95fbd5d4 5ec9a2f6
......@@ -205,6 +205,13 @@ class ArchiveTransfer extends abstractMessage
foreach (scandir($zipFolder) as $file) {
if ($file != "." && $file != "..") {
if (is_link($zipFolder.DIRECTORY_SEPARATOR.$file)) {
$this->sendError("202", "The container file contains symbolic links");
$exception = \laabs::newException('medona/invalidMessageException', "Invalid message", 400);
$exception->errors = $this->errors;
throw $exception;
}
rename($zipFolder.DIRECTORY_SEPARATOR.$file, $messageDir.DIRECTORY_SEPARATOR.$file);
if (pathinfo($file, PATHINFO_FILENAME) == pathinfo($filename, PATHINFO_FILENAME)) {
......
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