From 345f6ba6cf2c50cbc0c83c5bc55e87fdfb32f843 Mon Sep 17 00:00:00 2001 From: "hakan.sandell" Date: Tue, 28 Apr 2009 19:20:25 +0200 Subject: Windows path handling error in TarLib.class darcs-hash:20090428172025-9a5f4-adf1e1a58cc35066d019490c1dc8fb9b264e376c.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 91f707e4b..ab802163b 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,2)!=":\\")) /*" // <- PHP Coder bug */ + if (!$p_to || ($p_to[0]!="/"&&substr($p_to,0,3)!="../"&&substr($p_to,1,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