Commit 88beebf3 authored by Alexandre Morin's avatar Alexandre Morin

Merge branch 'hotfix/2.3.7' into 'master'

Hotfix/2.3.7 master

See merge request !179
parents 0f846f66 75aff9ac
......@@ -139,6 +139,10 @@ trait archiveEntryTrait
$scannedDirectory = array_diff(scandir($directory), array('..', '.'));
foreach ($scannedDirectory as $filename) {
if (is_link($directory . DIRECTORY_SEPARATOR . $filename)) {
throw new \core\Exception("The container file contains symbolic links");
}
if (\laabs::strStartsWith($filename, $archive->archivalProfileReference . " ")) {
$resource = $this->extractResource($directory, $filename);
$resource->setContents(base64_encode($resource->getContents()));
......
......@@ -449,6 +449,9 @@ msgstr "L'archive parente est une pièce, elle ne peut contenir des pièces"
msgid "The container file is non-compliant"
msgstr "Le fichier conteneur est non conforme."
msgid "The container file contains symbolic links"
msgstr "Le fichier conteneur contient des liens symboliques."
msgid "Journal file cannot be written"
msgstr "Le journal ne peut pas être écrit"
......
......@@ -623,6 +623,9 @@ msgstr "Relation modifiée"
msgid "Relation deleted"
msgstr "Relation supprimée"
msgid "The container file contains symbolic links"
msgstr "Le fichier conteneur contient des liens symboliques."
msgid "The relation control authority and orignator already exists."
msgstr "La relation entre l'Autorité de Contrôle et le producteur existe déjà."
......
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