Feature #16972 » patch_typolink.diff
class.tslib_content.php (working copy) | ||
---|---|---|
if ($forceTitle) {$title=$forceTitle;}
|
||
if ($JSwindowParams) {
|
||
$target=$conf['JSWindow.']['target']?$conf['JSWindow.']['target']:'FEopenLink';
|
||
$winObj=$conf['JSWindow.']['newWindow']?'vHWin_'.md5(rand()):'vHWin';
|
||
// 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;
|
||
} 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'])."',$target,'".$JSwindowParams."');".$winObj.".focus();return false;";
|
||
$res = '<a href="'.htmlspecialchars($finalTagParts['url']).'"'. $target .' onclick="'.htmlspecialchars($onClick).'"'.($title?' title="'.$title.'"':'').($linkClass?' class="'.$linkClass.'"':'').$finalTagParts['aTagParams'].'>';
|
||
} else {
|
||
if ($GLOBALS['TSFE']->spamProtectEmailAddresses === 'ascii' && $finalTagParts['TYPE'] === 'mailto') {
|