From 2aea426faace17abb2afc88d6fca36d5c1ed6cb1 Mon Sep 17 00:00:00 2001 From: Konrad Chorosinski Date: Thu, 15 Dec 2016 15:17:19 +0100 Subject: [PATCH] Fix statement in sanitizeFileName --- Classes/Driver/FTPDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Driver/FTPDriver.php b/Classes/Driver/FTPDriver.php index 0092134..0b8b6d6 100644 --- a/Classes/Driver/FTPDriver.php +++ b/Classes/Driver/FTPDriver.php @@ -1035,7 +1035,7 @@ public function sanitizeFileName($fileName, $charset = '') { } // Strip trailing dots and return $cleanFileName = preg_replace('/\\.*$/', '', $cleanFileName); - if (!$cleanFileName) { + if ($cleanFileName === false) { throw new \TYPO3\CMS\Core\Resource\Exception\InvalidFileNameException( 'File name ' . $cleanFileName . ' is invalid.', 1320288991