Skip to content

Commit 9060fb6

Browse files
committed
Remove all code related to typo3 below version 12; set version to 9.0.0
1 parent e9ec9d0 commit 9060fb6

File tree

10 files changed

+16
-375
lines changed

10 files changed

+16
-375
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ jobs:
3737
fast_finish: true
3838
include:
3939
- stage: test
40-
php: 7.2
41-
env: TYPO3=^8.7
40+
php: 8.2
41+
env: TYPO3=^12.4
4242
- stage: test
43-
php: 7.2
44-
env: TYPO3=^9.5
43+
php: 8.2
44+
env: TYPO3=^13.4
4545

4646
- stage: publish to ter
4747
if: tag IS present
48-
php: 7.2
48+
php: 8.2
4949
before_install: skip
5050
install: skip
5151
before_script: skip

Classes/JumpUrlProcessor.php

Lines changed: 0 additions & 222 deletions
This file was deleted.

Classes/Middleware/JumpUrlHandler.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,9 @@ protected function forwardJumpUrlSecureFileData(string $jumpUrl, string $locatio
154154

155155
// Check if requested file accessable
156156
$fileAccessAllowed = false;
157-
if ((new Typo3Version())->getMajorVersion() < 11) {
158-
$fileAccessAllowed = GeneralUtility::isAllowedAbsPath($absoluteFileName)
159-
&& GeneralUtility::verifyFilenameAgainstDenyPattern($absoluteFileName)
160-
&& !GeneralUtility::isFirstPartOfStr($absoluteFileName, Environment::getLegacyConfigPath());
161-
} else {
162-
$fileAccessAllowed = GeneralUtility::isAllowedAbsPath($absoluteFileName)
163-
&& GeneralUtility::makeInstance(FileNameValidator::class)->isValid($absoluteFileName)
164-
&& !str_starts_with($absoluteFileName, Environment::getLegacyConfigPath());
165-
}
157+
$fileAccessAllowed = GeneralUtility::isAllowedAbsPath($absoluteFileName)
158+
&& GeneralUtility::makeInstance(FileNameValidator::class)->isValid($absoluteFileName)
159+
&& !str_starts_with($absoluteFileName, Environment::getLegacyConfigPath());
166160
if (!$fileAccessAllowed) {
167161
throw new \Exception('The requested file was not allowed to be accessed through Jump URL. The path or file is not allowed.', 1294585194);
168162
}

Documentation/Installation/Index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ in a TYPO3 CMS 7+ installation.
1616
EXT:jumpurl v7 is compatible with TYPO3 v7 / v8 / v9, whereas
1717
EXT:jumpurl v8 is compatible with TYPO3 v9+ as it is based on the PSR-15
1818
middleware approach.
19+
EXT:jumpurl v9 is compatible with TYPO3 v12+ and drops support for older
20+
versions.
1921

2022
.. _TER: https://extensions.typo3.org/extension/jumpurl

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[![Latest Stable Version](https://poser.pugx.org/friendsoftypo3/jumpurl/v/stable.svg)](https://extensions.typo3.org/extension/jumpurl/)
2-
[![TYPO3 11](https://img.shields.io/badge/TYPO3-11-orange.svg?style=flat-square)](https://get.typo3.org/version/11)
3-
[![TYPO3 10](https://img.shields.io/badge/TYPO3-10-orange.svg?style=flat-square)](https://get.typo3.org/version/10)
4-
[![TYPO3 9](https://img.shields.io/badge/TYPO3-9-orange.svg?style=flat-square)](https://get.typo3.org/version/9)
2+
[![TYPO3 13](https://img.shields.io/badge/TYPO3-13-orange.svg?style=flat-square)](https://get.typo3.org/version/13)
3+
[![TYPO3 12](https://img.shields.io/badge/TYPO3-12-orange.svg?style=flat-square)](https://get.typo3.org/version/12)
54
[![Total Downloads](https://poser.pugx.org/friendsoftypo3/jumpurl/d/total.svg)](https://packagist.org/packages/friendsoftypo3/jumpurl)
65
[![Monthly Downloads](https://poser.pugx.org/friendsoftypo3/jumpurl/d/monthly)](https://packagist.org/packages/friendsoftypo3/jumpurl)
76

Tests/Unit/JumpUrlProcessorMock.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)