#106605PathUtility::stripPathSitePrefix() cuts provided path to invalid path
Description
Currently, the PathUtility::stripPathSitePrefix() method cuts the length of the public path value from provided $path even if the path does not start with the public path, which can lead to an invalid and malformed path afterward.
Expected is for path only to be modified when having the public path as prefix (starts with it) and otherwise return the unmodified path.
Reviews 4
- main 89381Revert "[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()"
- 13.4 89221[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()
- main 89376[BUGFIX] Avoid exceeding `sys_registry.entry_key` length
- main 89171[BUGFIX] Strip only existing prefix in PathUtility::stripPathSitePrefix()
Related issues 3
History 79
-
Stefan Bürk changed Related to #104440 <span data-processor="relativetime" data-value="2025-04-24T08:47:43+00:00" > 04/24/25, 08:47 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 89171 status
NewUnder Review <span data-processor="relativetime" data-value="2025-04-24T08:48:34+00:00" > 04/24/25, 08:48 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 89221 <span data-processor="relativetime" data-value="2025-04-24T11:37:54+00:00" > 04/24/25, 11:37 </span>
-
Stefan Bürk commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-04-24T11:50:08+00:00" > 04/24/25, 11:50 </span> -
Markus Klein changed Related to #106690 <span data-processor="relativetime" data-value="2025-05-13T15:16:44+00:00" > 05/13/25, 15:16 </span>
-
Stefan Bürk commented <span data-processor="relativetime" data-value="2025-05-14T07:31:38+00:00" > 05/14/25, 07:31 </span>
This change introduced quite some issues, revealed with
#106690 and the decision has been made to revert it now.See: #106690 and
https://review.typo3.org/c/Packages/TYPO3.CMS/+/89381 -
Stephan Großberndt changed description <span data-processor="relativetime" data-value="2025-05-14T11:51:06+00:00" > 05/14/25, 11:51 </span>
-
Benni Mack changed Related to #107123 <span data-processor="relativetime" data-value="2025-07-22T08:45:56+00:00" > 07/22/25, 08:45 </span>
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:21:18+00:00" > 12/02/25, 14:21 </span>
Applied in changeset commit:e5b30f1a3136a51ded87f65dea088ecb38081b22.