Project

General

Profile

Actions

Bug #17713

closed

addQueryString.exclude with an empty query string causes &= url parameter

Added by Marc Bastian Heinrichs over 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-10-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

6576.patch (488 Bytes) 6576.patch Administrator Admin, 2007-12-12 00:44
6576_B.patch (661 Bytes) 6576_B.patch Administrator Admin, 2008-05-16 15:08
01_useCacheHash.diff (2.05 KB) 01_useCacheHash.diff Administrator Admin, 2008-10-16 13:10
Actions

Also available in: Atom PDF