cvs: pear /Archive_Tar Tar.php
| From: | Alexander Merz | Date: | Thu, 11 Oct 2001 13:30:29 +0000 |
| Subject: | cvs: pear /Archive_Tar Tar.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-977@lists.php.net to get a copy of this message | ||
alexmerz Thu Oct 11 09:30:29 2001 EDT
Modified files:
/pear/Archive_Tar Tar.php
Log:
fix the win fix by a better solution
Index: pear/Archive_Tar/Tar.php
diff -u pear/Archive_Tar/Tar.php:1.6 pear/Archive_Tar/Tar.php:1.7
--- pear/Archive_Tar/Tar.php:1.6 Thu Oct 11 09:20:10 2001
+++ pear/Archive_Tar/Tar.php Thu Oct 11 09:30:28 2001
@@ -16,7 +16,7 @@
// | Authors: Vincent Blavet <vincent@blavet.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Tar.php,v 1.6 2001/10/11 13:20:10 alexmerz Exp $
+// $Id: Tar.php,v 1.7 2001/10/11 13:30:28 alexmerz Exp $
require_once 'PEAR.php';
@@ -24,7 +24,7 @@
* Creates a (compressed) Tar archive
*
* @author Vincent Blavet <vincent@blavet.net>
-* @version $Revision: 1.6 $
+* @version $Revision: 1.7 $
* @package Archive
*/
class Archive_Tar extends PEAR
@@ -737,7 +737,7 @@
$v_extract_all = true;
$v_listing = false;
- if (($p_path == "") || ((substr($p_path, 0, 1) != "/") &&
(substr($p_path, 0, 3) != "../") && (substr(PHP_OS, 0, 3) != 'WIN')))
+ if (($p_path == "") || ((substr($p_path, 0, 1) != "/") &&
(substr($p_path, 0, 3) != "../") && (substr($p_path, 1, 3) != ':\'))))
$p_path = "./".$p_path;
// ----- Look for path to remove format (should end by /)