[TYPO3-core] RFC: #7969: indexing of external files may be prevented by php's open_basedir restriction

Christian Hernmarck linux at lists.hernmarck.ch
Tue Nov 30 11:02:41 CET 2010


Hi everybody,

this is a SVN patch request.

Type: Bugfix

BT Reference: http://bugs.typo3.org/view.php?id=7969

Branches: 4_2 (one file), 4_3, 4_4 (other file), trunk ???

Problem:
class.external_parser.php tries to check the existence with is_file().
This fails in my case because of an existing open-basedir-restriction
in php.

Solution:
replace (example)
if (ini_get('safe_mode') || @is_file($catdocPath.'catdoc'.$exe))
with
if (ini_get('safe_mode') || ini_get('open_basedir') ||
@is_file($catdocPath.'catdoc'.$exe))

-> include the case when open_basedir is set but not safe_mode....


I include two files, one is for 4_2 the other for 4_3, 4_4 

Seems that in the trunk there is a new variable which tells about the
safe_mode. Maybe someone could adopt the patch for the trunk (is
there also a varable for open_basedir???)


Thanx

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: indexed_search_7969_t3_42.patch
Type: text/x-diff
Size: 3489 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101130/12871c19/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: indexed_search_7969_t3_43-44.patch
Type: text/x-diff
Size: 3559 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101130/12871c19/attachment-0003.patch>


More information about the TYPO3-team-core mailing list