Removed three lines - this fixes the path problems occurring when
authormoodler <moodler>
Sun, 25 May 2003 12:46:17 +0000 (12:46 +0000)
committermoodler <moodler>
Sun, 25 May 2003 12:46:17 +0000 (12:46 +0000)
extracting files in Moodle on Windows platforms.

This should not affect normal use within Moodle on other platforms.

lib/pclzip/pclzip.lib.php

index 13b75d6e9e4b89409478fcfce6ec02b239eecc31..0806cffde99efb7e4027dc1cd4bad01bfcc8cf02 100644 (file)
     //--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, "PclZip::privExtract", "list, path=$p_path, remove_path='$p_remove_path', remove_all_path='".($p_remove_all_path?'true':'false')."'");\r
     $v_result=1;\r
 \r
-    // ----- Check the path\r
-    if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))\r
-      $p_path = "./".$p_path;\r
+// COMMENTED OUT FOR MOODLE - IT WAS CAUSING PROBLEMS FOR WINDOWS  - Martin 25/5/2003\r
+//\r
+//    // ----- Check the path\r
+//    if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))\r
+//      $p_path = "./".$p_path;\r
+\r
 \r
     // ----- Reduce the path last (and duplicated) '/'\r
     if (($p_path != "./") && ($p_path != "/"))\r
   }\r
   // --------------------------------------------------------------------------------\r
 \r
-?>
\ No newline at end of file
+?>\r