Project

General

Profile

Feature #16972 » 4963_v1.patch

Administrator Admin, 2010-10-27 17:40

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
}
if ($JSwindowParams) {
$uniqueTargetString = md5($finalTagParts['url']);
$winTarget = $conf['JSwindow.']['altTargetName'] ? $conf['JSwindow.']['altTargetName'] : 'jsWin' . $uniqueTargetString;
$winObj = $conf['JSwindow.']['altWinObjName'] ? $conf['JSwindow.']['altWinObjName'] : 'vHWin_' . $uniqueTargetString;
// Create TARGET-attribute only if the right doctype is used
if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) {
$target = ' target="FEopenLink"';
$target = ' target="' . $winTarget . '"';
} else {
$target = '';
}
$onClick = "vHWin=window.open('" . $GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url']) .
"','FEopenLink','" . $JSwindowParams . "');vHWin.focus();return FALSE;";
$onClick = $winObj . "=window.open('" . $GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url']) .
"','" . $winTarget . "','" . $JSwindowParams . "');" . $winObj . ".focus();return false;";
$res = '<a href="' . htmlspecialchars($finalTagParts['url']) . '"' .
$target . ' onclick="' . htmlspecialchars($onClick) . '"' .
($title ? ' title="' . $title . '"' : '') .
(4-4/4)