Index: typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php =================================================================== --- typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (revision 7119) +++ typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (working copy) @@ -1731,7 +1731,13 @@ // If external media, link to the media-file instead. if ($row['item_type']) { // External media if ($row['show_resume']) { // Can link directly. - $title = ''.htmlspecialchars($this->makeTitle($row)).''; + $targetAttribute = ''; + if ($GLOBALS['TSFE']->config['config']['fileTarget']) { + $targetAttribute = ' target="' . htmlspecialchars($GLOBALS['TSFE']->config['config']['fileTarget']) . '"'; + } + $title = '' . + htmlspecialchars($this->makeTitle($row)) . + ''; } else { // Suspicious, so linking to page instead... $copy_row = $row; unset($copy_row['cHashParams']); @@ -2095,7 +2101,13 @@ $pI = parse_url($row['data_filename']); if ($pI['scheme']) { - $tmplArray['path'] = ''.htmlspecialchars($row['data_filename']).''; + $targetAttribute = ''; + if ($GLOBALS['TSFE']->config['config']['fileTarget']) { + $targetAttribute = ' target="' . htmlspecialchars($GLOBALS['TSFE']->config['config']['fileTarget']) . '"'; + } + $tmplArray['path'] = '' . + htmlspecialchars($row['data_filename']) . + ''; } else { $pathStr = htmlspecialchars($this->getPathFromPageId($pathId,$pathMP)); $tmplArray['path'] = $this->linkPage($pathId,$pathStr,array(