Project

General

Profile

Bug #15693 ยป correctHtmlLinks.diff

Administrator Admin, 2006-02-21 21:58

View differences:

typo3_src-4.0beta3/typo3/sysext/cms/tslib/class.tslib_content.php 2006-02-21 21:43:27.000000000 +0100
if ($forceTitle) {$title=$forceTitle;}
$tempArray = explode('&',$finalTagParts['url']);
if ($tempArray) {
foreach ($tempArray as $k => $UrlPart) {
$tempArray[$k] = htmlspecialchars($UrlPart);
}
}
$finalTagParts['url'] = implode ('&', $tempArray);
if ($JSwindowParams) {
// Create TARGET-attribute only if the right doctype is used
......
}
$onClick="vHWin=window.open('".$GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url'])."','FEopenLink','".$JSwindowParams."');vHWin.focus();return false;";
$res = '<a href="'.htmlspecialchars($finalTagParts['url']).'"'. $target .' onclick="'.htmlspecialchars($onClick).'"'.($title?' title="'.$title.'"':'').($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
$res = '<a href="'.$finalTagParts['url'].'"'. $target .' onclick="'.htmlspecialchars($onClick).'"'.($title?' title="'.$title.'"':'').($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
} else {
if ($GLOBALS['TSFE']->spamProtectEmailAddresses === 'ascii' && $finalTagParts['TYPE'] === 'mailto') {
$res = '<a href="'.$finalTagParts['url'].'"'.($title?' title="'.$title.'"':'').$finalTagParts['targetParams'].($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
} else {
$res = '<a href="'.htmlspecialchars($finalTagParts['url']).'"'.($title?' title="'.$title.'"':'').$finalTagParts['targetParams'].($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
$res = '<a href="'.$finalTagParts['url'].'"'.($title?' title="'.$title.'"':'').$finalTagParts['targetParams'].($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
}
}
    (1-1/1)