#23862TYPO3 4.1.15: Incomplete whitelistPattern in function sanitizeLocalUrl (class.t3lib_div.php)
Description
When localizing a record in list view (by clicking on the lang flag), the redirect url parameters have this pattern:
id=pageId&table=&justLocalized=tx_table:parentRecordId:langId
Function sanitizeLocalUrl match this query string on the pattern ‘/^[a-z0-9_\/\.&=\?\+~-]+$/i’
This match failed because of the : which is not present.
Solution:
replace line 3607: $whitelistPattern = ‘/^[a-z0-9_\/\.&=\?\+~-]+$/i’;
by : $whitelistPattern = ‘/^[:a-z0-9_\/\.&=\?\+~-]+$/i’;
(issue imported from #M16157)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.