From 5f8bd1f510e220c8a3e3f78b8cef8a3cf08f990e Mon Sep 17 00:00:00 2001 From: Nathanaƫl Jourdane Date: Thu, 31 May 2018 12:15:29 +0200 Subject: [PATCH] Fix Windows-files import problem --- php/classes/AmdaAction.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/php/classes/AmdaAction.php b/php/classes/AmdaAction.php index f3315a3..40fdbe0 100644 --- a/php/classes/AmdaAction.php +++ b/php/classes/AmdaAction.php @@ -594,6 +594,9 @@ class AmdaAction */ public function getUploadedObject($name, $format, $nodeType) { + $fileContent = preg_replace(['~\R~u', "/\t/"], ["\n", ' '], trim(file_get_contents(USERTEMPDIR . $name))); + file_put_contents(USERTEMPDIR . $name, $fileContent); + switch ($nodeType) { case 'timeTable' : -- libgit2 0.21.2