Commit 5f8bd1f510e220c8a3e3f78b8cef8a3cf08f990e

Authored by Nathanaël Jourdane
1 parent 34d41fb3

Fix Windows-files import problem

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
php/classes/AmdaAction.php
... ... @@ -594,6 +594,9 @@ class AmdaAction
594 594 */
595 595 public function getUploadedObject($name, $format, $nodeType)
596 596 {
  597 + $fileContent = preg_replace(['~\R~u', "/\t/"], ["\n", ' '], trim(file_get_contents(USERTEMPDIR . $name)));
  598 + file_put_contents(USERTEMPDIR . $name, $fileContent);
  599 +
597 600 switch ($nodeType)
598 601 {
599 602 case 'timeTable' :
... ...