Commit 2dddd29b authored by Oliver Hader's avatar Oliver Hader Committed by Andreas Fernandez
Browse files

[BUGFIX] Avoid realpath resolving in PharStreamWrapperInterceptor

Given that e.g. public/typo3conf/ext/my_extension is symlinked to
packages/my_extension, PharStreamWrapper denies invocation since
realpath is resolved.

For the specific PharStreamWrapperInterceptor it is okay to avoid
realpath resolving.

Resolves: #88340
Releases: master, 9.5, 8.7
Change-Id: I46b7100547dd0e40d1d4d76a71047ef977d8ce63

Tested-by: default avatarTYPO3com <>
Tested-by: Mathias Brodala's avatarMathias Brodala <>
Tested-by: Thomas Löffler's avatartomalo.stuttgart <>
Tested-by: Markus Klein's avatarMarkus Klein <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Mathias Brodala's avatarMathias Brodala <>
Reviewed-by: Thomas Löffler's avatartomalo.stuttgart <>
Reviewed-by: default avatarRudy Gnodde <>
Reviewed-by: default avatarKevin Meckl <>
Reviewed-by: Richard Haeser's avatarRichard Haeser <>
Reviewed-by: Markus Klein's avatarMarkus Klein <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
parent ccaa33a2
......@@ -20,6 +20,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\PharStreamWrapper\Assertable;
use TYPO3\PharStreamWrapper\Exception;
use TYPO3\PharStreamWrapper\Manager;
use TYPO3\PharStreamWrapper\Resolver\PharInvocationResolver;
class PharStreamWrapperInterceptor implements Assertable
......@@ -49,7 +50,7 @@ class PharStreamWrapperInterceptor implements Assertable
protected function isAllowed(string $path): bool
$invocation = Manager::instance()->resolve($path);
$invocation = Manager::instance()->resolve($path, PharInvocationResolver::RESOLVE_ALIAS);
if ($invocation === null) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment