From ac4cba6f11512349e434b06b987aa49b46aa91da Mon Sep 17 00:00:00 2001 From: Frank Muehlschlegel Date: Sun, 30 Nov 2008 15:07:38 +0100 Subject: Fix tgz extraction bug on Windows Systems This patch fixes a problem in the TarLib when running on Windows-Systems. darcs-hash:20081130140738-ed43e-4cd9586d41184911f968a9fd860b2bec821d7db6.gz --- inc/TarLib.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/TarLib.class.php') diff --git a/inc/TarLib.class.php b/inc/TarLib.class.php index 0f8f258de..24adddac7 100644 --- a/inc/TarLib.class.php +++ b/inc/TarLib.class.php @@ -824,7 +824,7 @@ $p_add, $p_rem); function _extractList($p_to, $p_files, $p_remdir, $p_mode = 0755) { - if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,3)!=":\\")) /*" // <- PHP Coder bug */ + if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,2)!=":\\")) /*" // <- PHP Coder bug */ $p_to = "./$p_to"; if ($p_remdir && substr($p_remdir,-1)!='/') $p_remdir .= '/'; -- cgit v1.2.3