[BUGFIX] Allow importing of non-compressed t3d files again 09/46509/2
authorMarkus Klein <markus.klein@typo3.org>
Fri, 5 Feb 2016 18:38:46 +0000 (19:38 +0100)
committerBenni Mack <benni@typo3.org>
Mon, 8 Feb 2016 14:12:17 +0000 (15:12 +0100)
Resolves: #73157
Releases: master, 7.6
Change-Id: I6b08290fd4961116f7dbcc87d11b2d35b61411fb
Reviewed-on: https://review.typo3.org/46509
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Daniel Gorges <daniel.gorges@b13.de>
Tested-by: Daniel Gorges <daniel.gorges@b13.de>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/impexp/Classes/Import.php

index f5b9753..f4d376b 100644 (file)
@@ -2058,11 +2058,12 @@ class Import extends ImportExport
             if ($initStrDat[1]) {
                 if ($this->compress) {
                     $datString = gzuncompress($datString);
-                    return $unserialize ? unserialize($datString) : $datString;
                 } else {
                     $this->error('Content read error: This file requires decompression, but this server does not offer gzcompress()/gzuncompress() functions.');
+                    return null;
                 }
             }
+            return $unserialize ? unserialize($datString) : $datString;
         } else {
             $this->error('MD5 check failed (' . $name . ')');
         }