Actions
Bug #97864
openfile mount directory classified as file, if the directory name has point
Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2022-07-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
Description
file mount directory e.g. "test.com" will be classified as file, if the directory name has point.
TYPO3:
CMS:
Form:
persistenceManager:
allowedFileMounts:
100: '1:/test.com/'
The problem is using pathinf() to check if $persistencePath is a file or a directory, in .../typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php
public function isAllowedPersistencePath(string $persistencePath): bool
{
$pathinfo = PathUtility::pathinfo($persistencePath);
$persistencePathIsFile = isset($pathinfo['extension']);
...
Actions