Actions
Bug #92105
openWrong usage of array_diff inside TYPO3\CMS\Frontend\Utility\CanonicalizationUtility::getParamsToExcludeForCanonicalizedUrl
Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2020-08-26
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello TYPO3 Team,
as mentioned in the Subject, in this function the use off array_diff is wrong and array_diff_assoc should be used.
Example(pageId === values of other parameters):
URL Parameters id=7&bla=7&blub=7
$urlParameters = array(
bla => '7' (1 chars)
blub => '7' (1 chars)
id => '7' (1 chars)
$paramsToExclude would be empty because, array_diff will test the value, but the key should be testet.
If the value is not the PageId array_diff will work, but not if the values are the same.
If array_diff_assoc would be used, then the result would be correct.
$paramsToExclude = Array(
bla => 7,
blub => 7
)
Best Regards
Oliver Büker
No data to display
Actions