Issue Bug Closed

#104807getText path broken for extension paths in v12

Andreas Kießling 09/03/24, 19:08 updated 10/15/24, 09:06

Description

Since the second param for sanitize is not set, it does not allow extension paths, thus it won’t resolve it.

case 'path':
  try {
    $retVal = GeneralUtility::makeInstance(FilePathSanitizer::class)->sanitize($key);

In v13 there seems to be a new getText option asset https://review.typo3.org/c/Packages/TYPO3.CMS/+/77018

Can this be backported to v12? Otherwise sanitize should be called with allowed extension paths.

The documentation is pretty clear at what path should do: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Data.html#path

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.