Project

General

Profile

Bug #18520 » indexed_search_7969_t3_45.patch

Administrator Admin, 2011-02-08 15:34

View differences:

typo3/sysext/indexed_search/class.external_parser.php 2011-02-08 15:26:32.000000000 +0100
// PDF
if ($indexerConfig['pdftools']) {
$pdfPath = rtrim($indexerConfig['pdftools'], '/').'/';
if ($safeModeEnabled || (@is_file($pdfPath . 'pdftotext' . $exe) && @is_file($pdfPath . 'pdfinfo' . $exe))) {
if ($safeModeEnabled || ini_get('open_basedir') || (@is_file($pdfPath . 'pdftotext' . $exe) && @is_file($pdfPath . 'pdfinfo' . $exe))) {
$this->app['pdfinfo'] = $pdfPath.'pdfinfo'.$exe;
$this->app['pdftotext'] = $pdfPath.'pdftotext'.$exe;
// PDF mode:
......
// Catdoc
if ($indexerConfig['catdoc']) {
$catdocPath = rtrim($indexerConfig['catdoc'], '/').'/';
if ($safeModeEnabled || @is_file($catdocPath . 'catdoc' . $exe)) {
if ($safeModeEnabled || ini_get('open_basedir') || @is_file($catdocPath . 'catdoc' . $exe)) {
$this->app['catdoc'] = $catdocPath.'catdoc'.$exe;
$extOK = TRUE;
} else $this->pObj->log_setTSlogMessage(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:catdocNotFound'), $catdocPath), 3);
......
// ppthtml
if ($indexerConfig['ppthtml']) {
$ppthtmlPath = rtrim($indexerConfig['ppthtml'], '/').'/';
if ($safeModeEnabled || @is_file($ppthtmlPath . 'ppthtml' . $exe)) {
if ($safeModeEnabled || ini_get('open_basedir') || @is_file($ppthtmlPath . 'ppthtml' . $exe)) {
$this->app['ppthtml'] = $ppthtmlPath.'ppthtml'.$exe;
$extOK = TRUE;
} else $this->pObj->log_setTSlogMessage(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:ppthtmlNotFound'), $ppthtmlPath), 3);
......
// Xlhtml
if ($indexerConfig['xlhtml']) {
$xlhtmlPath = rtrim($indexerConfig['xlhtml'], '/').'/';
if ($safeModeEnabled || @is_file($xlhtmlPath . 'xlhtml' . $exe)) {
if ($safeModeEnabled || ini_get('open_basedir') || @is_file($xlhtmlPath . 'xlhtml' . $exe)) {
$this->app['xlhtml'] = $xlhtmlPath.'xlhtml'.$exe;
$extOK = TRUE;
} else $this->pObj->log_setTSlogMessage(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:xlhtmlNotFound'), $xlhtmlPath), 3);
......
case 'odt': // Oasis OpenDocument Text
if ($indexerConfig['unzip']) {
$unzipPath = rtrim($indexerConfig['unzip'], '/').'/';
if ($safeModeEnabled || @is_file($unzipPath . 'unzip' . $exe)) {
if ($safeModeEnabled || ini_get('open_basedir') || @is_file($unzipPath . 'unzip' . $exe)) {
$this->app['unzip'] = $unzipPath.'unzip'.$exe;
$extOK = TRUE;
} else $this->pObj->log_setTSlogMessage(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:unzipNotFound'), $unzipPath), 3);
} else $this->pObj->log_setTSlogMessage($this->sL('LLL:EXT:indexed_search/locallang.xml:unzipDisabled'), 1);
break;
case 'rtf':
// Catdoc
// Unrtf
if ($indexerConfig['unrtf']) {
$unrtfPath = rtrim($indexerConfig['unrtf'], '/').'/';
if ($safeModeEnabled || @is_file($unrtfPath . 'unrtf' . $exe)) {
if ($safeModeEnabled || ini_get('open_basedir') || @is_file($unrtfPath . 'unrtf' . $exe)) {
$this->app['unrtf'] = $unrtfPath.'unrtf'.$exe;
$extOK = TRUE;
} else $this->pObj->log_setTSlogMessage(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:unrtfNotFound'), $unrtfPath), 3);
(7-7/7)