Project

General

Profile

Actions

Bug #18623

closed

class.t3lib_exec.php prevents extension to work under PHP hardening

Added by Xavier Perseguers over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-04-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When trying to use dam_index with index services using external tools such as pdftotext or exiftags, the BE reported that these tools were not available although some of them were used with indexed_search without any problem.

The problem relies in t3lib/class.t3lib_exec.php when checking if an external tool is executable or not. My server configuration is as follows:

PHP: open_basedir /var/www/somedir:/var/www/bin

in /var/www/bin, I have for instance a symbolic link

pdftotext -> /usr/bin/pdftotext

Now a call to is_executable('/usr/bin/pdftotext') always returns false when dealing with a symbolic link inside a directory found in the open_basedir list of directories.

As such, the t3lib_exec class assumes that the external tool pdftotext is not available.

The only solution I found was to list all executables as "openbase_dir":

php_admin_value open_basedir /var/www/somedir:/var/www/bin/pdftotext
(issue imported from #M8130)


Files

t3lib_exec.patch (917 Bytes) t3lib_exec.patch Administrator Admin, 2008-04-16 20:14
Actions

Also available in: Atom PDF