In the case that PHP open_basedir is used, /tmp is NOT
included in the open_basedir and a file is uploaded -
Reason: $tmpDir variable in tiki-setup.php is
overridden by PEAR
Solution: this is a temporary patch which simply adds a
$tmpDir = TikiInit::tempdir();
to the very end of the tiki-setup.php, so PEAR settings
Better solution (of which no patch is available):
a. get PEAR to make their tmpDir local ?
b. rename tmpDir in TikiWiki to something else ?
c. put the whole tmpDir declaration AFTER the PEAR
Attached is tiki-setup.php derived of revision
126.96.36.199 (TikiWiki 1.8.5) - the same solution applies
to TikiWiki 1.9 and up...
Log in to post a comment.