]> git.mjollnir.org Git - moodle.git/commitdiff
Solved one condition that caused some errors in Win32 when extracting.
authorstronk7 <stronk7>
Sun, 24 Aug 2003 22:35:57 +0000 (22:35 +0000)
committerstronk7 <stronk7>
Sun, 24 Aug 2003 22:35:57 +0000 (22:35 +0000)
lib/pclzip/pclzip.lib.php

index c31085633065e55d980304e35a939598a76381b7..466997cdf18a4e385f2f748759675f02d046a442 100644 (file)
     $v_result=1;\r
 \r
     // ----- Check the path\r
-    if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/")))\r
+    if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,1)!=":")))\r
       $p_path = "./".$p_path;\r
 \r
     // ----- Reduce the path last (and duplicated) '/'\r