From b4f107740309f736f050061ee178769b98e434de Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Mon, 4 Aug 2003 13:31:35 +0000 Subject: [PATCH] More space in path name fixes (Greg) --- pear/PEAR/Common.php | 3 +++ pear/PEAR/Installer.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 6676f02a9c..a0f3685993 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -693,6 +693,9 @@ 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)) { return $this->raiseError('could not extract the package.xml file'); } diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index 9f95e25aa6..6f6deadf65 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -552,7 +552,7 @@ class PEAR_Installer extends PEAR_Common $this->log(2, '+ tmp dir created at ' . $tmpdir); $tar = new Archive_Tar($pkgfile); - if (!@$tar->extract($tmpdir)) { + if (!@$tar->extract(array($tmpdir))) { return $this->raiseError("unable to unpack $pkgfile"); } -- 2.40.0