Project

General

Profile

Actions

Bug #15171

closed

TYPOLINK deletes Parameters in tslib/class.tslib_content.php

Added by Christian Holzmann over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-11-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Althought activating typolink.addQueryString=1
or additionalParams, no Parameters are added to the link.

I think this is because of the lines (5006-????)

$addQueryParams = $conf['addQueryString'] ? t3lib_div::getIndpEnv('QUERY_STRING') : '';
  1. Here the addQueryParams Variable is set; but QUERY_STRING does NOT return an "&"! (Example: id=73&sword_list[]=kajsdh&sword_list[]=ouoiu)

$addQueryParams .= trim($this->stdWrap($conf['additionalParams'],$conf['additionalParams.']));

  1. Here the addQueryParams Variable is deleted if addQueryString=1, because QUERY_STRING has not returned any "&"!
    if (substr($addQueryParams,0,1)!='&') {
    $addQueryParams = '';

(issue imported from #M1770)

Actions #1

Updated by Simon Ihmig over 18 years ago

Confirmed.

A fix seems to be simple:
$addQueryParams = $conf['addQueryString'] ? '&'.t3lib_div::getIndpEnv('QUERY_STRING') : '';

Actions #2

Updated by Martin Kutschker over 18 years ago

Fixed in 3.8.1 by Michael Stucki.

Actions

Also available in: Atom PDF