#108728[BUGFIX] Searching with spaces causes empty screen redirect in 11.5.48+
Description
## Problem
After upgrading to TYPO3 11.5.48, searching in the backend list module with
search terms containing spaces (e.g., “Move to”) and then opening/closing
a record redirects to /typo3/empty instead of returning to the list.
## Root Cause
The security fix TYPO3-CORE-SA-2025-017 in 11.5.48 added whitespace validation
to GeneralUtility::sanitizeLocalUrl(). The returnUrl from DatabaseRecordList
contains encoded spaces (%20) which become real spaces after rawurldecode(),
triggering the whitespace check and rejecting the URL.
## Affected Versions
- TYPO3 11.5.48+
## Steps to Reproduce
1. Go to List module
2. Search for “test word” (with space) – should have at least 1 result in you list view
3. Click edit on any record
4. Close the record
5. Result: Redirected to /typo3/empty
## Expected Behavior
Should return to the list view with search intact.
## Proposed Solution
Encode spaces in returnUrl one extra time (%20 → %2520) so they remain
encoded after sanitizeLocalUrl’s rawurldecode().
Patch available.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 1
History 3
-
Andreas Kienast commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-02-09T06:49:47+00:00" > 02/09/26, 06:49 </span>Hello,
thank you very much for reporting this issue. This is an already known regression (#107414), whose bugfix hasn’t been ported to ELTS, yet.
The fix will be incorporated into the next ELTS releases.Kind regards
Andreas -
Andreas Kienast changed Duplicates #107414 <span data-processor="relativetime" data-value="2026-02-09T06:49:56+00:00" > 02/09/26, 06:49 </span>
## Workaround
Until this is fixed in core, users can apply this patch via composer:
1. Add patch file to `patches/recordlist_fix_whitespace_search.patch`
2. Update `composer.patches.json`:
{ "patches": { "typo3/cms-recordlist": { "[BUGFIX] Fix empty screen redirect when searching with spaces in TYPO3 11.5.48+": "patches/recordlist_fix_whitespace_search.patch" } } }