Verified Commit 5ec9a2f6 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Update unlink -> is_link

parent 9c097248
......@@ -205,7 +205,7 @@ class ArchiveTransfer extends abstractMessage
foreach (scandir($zipFolder) as $file) {
if ($file != "." && $file != "..") {
if (unlink($zipFolder.DIRECTORY_SEPARATOR.$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;
......
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