[TASK] Add a PathUtility method to check for host-absolute URLs
This replaces a lot of string-based comparisons spread around the code, which have been even wrong. Having a single place for this kind of checks is beneficial. The method is added to PathUtility as similar methods are already present there. Releases: master Resolves: #95121 Change-Id: Ic73aac5d8c758dee5e0424bf2d54cd62b4b09e0c Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70913 Tested-by:core-ci <typo3@b13.com> Tested-by:
Markus Klein <markus.klein@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Markus Klein <markus.klein@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Resource/PublicUrlPrefixer.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/Resource/PublicUrlPrefixer.php
- typo3/sysext/backend/Classes/Template/ModuleTemplate.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Template/ModuleTemplate.php
- typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php 1 addition, 1 deletion...3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
- typo3/sysext/core/Classes/LinkHandling/LinkService.php 2 additions, 2 deletionstypo3/sysext/core/Classes/LinkHandling/LinkService.php
- typo3/sysext/core/Classes/Log/Writer/FileWriter.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Log/Writer/FileWriter.php
- typo3/sysext/core/Classes/Page/AssetRenderer.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Page/AssetRenderer.php
- typo3/sysext/core/Classes/Utility/PathUtility.php 19 additions, 1 deletiontypo3/sysext/core/Classes/Utility/PathUtility.php
- typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php 28 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php
- typo3/sysext/redirects/Classes/Evaluation/SourceHost.php 4 additions, 1 deletiontypo3/sysext/redirects/Classes/Evaluation/SourceHost.php
Please register or sign in to comment