diff options
author | Tomas V.V.Cox <cox@php.net> | 2003-08-05 15:35:17 +0000 |
---|---|---|
committer | Tomas V.V.Cox <cox@php.net> | 2003-08-05 15:35:17 +0000 |
commit | dececbdb4cbbec447843a691d402b03e8c7d11a5 (patch) | |
tree | 10997b389d33c5aa5c4faf5c330124d6f8e263fc | |
parent | 6c93b3016528b9a7a58e8af94aa8ce6d271634f1 (diff) | |
download | php-git-dececbdb4cbbec447843a691d402b03e8c7d11a5.tar.gz |
Other fix to ws in path names fix
-rw-r--r-- | pear/PEAR/Common.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 03bb5c54a0..81f88b6643 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -701,10 +701,7 @@ class PEAR_Common extends PEAR } $tmpdir = System::mkTemp('-d pear'); $this->addTempFile($tmpdir); - if (!is_array($xml)) { - $xml = array($xml); - } - if (!$xml || !$tar->extractList($xml, $tmpdir)) { + if (!$xml || !$tar->extractList(array($xml), $tmpdir)) { return $this->raiseError('could not extract the package.xml file'); } return $this->infoFromDescriptionFile("$tmpdir/$xml"); |