[TYPO3-shop] LINK_ITEM and invalid HTML code
Franz Holzinger
franz at fholzinger.com
Mon Jun 9 16:48:13 CEST 2008
Franz Holzinger a écrit :
> You can change the code:
>
> tt_products/view/class.tx_ttproducts_list_view.php:
>
> $linkUrl =
> $this->pibase->pi_getPageLink($pid,'',$this->marker->getLinkParams('',array(),true));
> $linkUrl = htmlspecialchars($linkUrl);
> $wrappedSubpartArray['###LINK_ITEM###'] = array('<a href="'. $linkUrl
> .'">','</a>',array('useCacheHash' => true));
>
And some lines must be changed too:
if ($typoVersion < 3008000) {
$pageLink =
htmlspecialchars('index.php?id='.$pid.'&'.$this->pibase->prefixId.'['.strtolower($itemTable->marker).']='.intval($row['uid']).'&'.$this->pibase->prefixId.'[backPID]='.$TSFE->id);
} else {
$addQueryString[$itemTable->type] = intval($row['uid']);
$addQueryString['cat'] = $cat;
$queryString = $this->marker->getLinkParams('begin_at', $addQueryString);
// $pageLink = $this->pibase->pi_getPageLink($pid,'',$queryString);
// 1-$TSFE->no_cache
$pageLink =
htmlspecialchars($this->pibase->pi_linkTP_keepPIvars_url($queryString,1,0,$pid));
}
- Franz
More information about the TYPO3-project-tt-products
mailing list