Project

General

Profile

Actions

Bug #25470

closed

$GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'] setting used with and without unzip command

Added by Patrick Rodacker over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-03-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The configuration option

$GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path']

is used in two different functions within the core:

The start() function in the class t3lib_extFileFunctions sets the var $this->unzipPath

$this->unzipPath = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'];

which is used in the function
func_unzip() expecting the configuration to be the path only without the command including a trailing slash:

$cmd = $this->unzipPath . 'unzip -qq "' . $theFile . '" -d "' . $theDest . '"';

The other occurence of the configuration setting is within the extension em. The static function unzip in the class tx_em_Tools expects the setting to include the unzip command:

$cmd = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'] . ' -o ' . escapeshellarg($file);

Actions

Also available in: Atom PDF