#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.