Skip to content

Commit

Permalink
fix: Ensure TYPO3_REQUEST is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tweis committed Feb 6, 2024
1 parent 9ed7f2b commit 68c8557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/EventListener/AddCdnToResource.php
Expand Up @@ -24,6 +24,7 @@ public function __invoke(GeneratePublicUrlForResourceEvent $event): void
$resource = $event->getResource();
if (
!($driver instanceof LocalDriver) ||
!isset($GLOBALS['TYPO3_REQUEST']) ||
ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()
) {
return;
Expand Down

0 comments on commit 68c8557

Please sign in to comment.