#17713addQueryString.exclude with an empty query string causes &= url parameter
Description
and in combination with cHash you get broken links
in function getQueryArguments in class tslib_cObj:
with undefined method QUERY_STRING is exploded, so $q_in is an array with one empty element.
$q_out is an array with one empty element, too.
with
foreach ($q_out as $k => $v) {
$content .= ‘&’.$k.’=’.$v;
}
$content will be &=
I’ve added a check if $k is not empty to solve it. Perhaps you have an better solution.
printlink TS to reproduce:
typolink.parameter.data = page:uid
typolink.parameter.wrap = |,98
typolink.addQueryString = 1
typolink.addQueryString.exclude = cHash
typolink.useCacheHash = 1
(issue imported from #M6576)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.