From: stronk7 Date: Sun, 24 Aug 2003 22:35:57 +0000 (+0000) Subject: Solved one condition that caused some errors in Win32 when extracting. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4545fc38901e00ccdfb6f33b4745c3bba742a6c6;p=moodle.git Solved one condition that caused some errors in Win32 when extracting. --- diff --git a/lib/pclzip/pclzip.lib.php b/lib/pclzip/pclzip.lib.php index c310856330..466997cdf1 100644 --- a/lib/pclzip/pclzip.lib.php +++ b/lib/pclzip/pclzip.lib.php @@ -2629,7 +2629,7 @@ $v_result=1; // ----- Check the path - if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/"))) + if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,1)!=":"))) $p_path = "./".$p_path; // ----- Reduce the path last (and duplicated) '/'