Removed three lines - this fixes the path problems occurring when

extracting files in Moodle on Windows platforms.

This should not affect normal use within Moodle on other platforms.
This commit is contained in:
moodler 2003-05-25 12:46:17 +00:00
parent c4ad9158e3
commit 3926deafe1

View File

@ -2477,9 +2477,12 @@
//--(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')."'");
$v_result=1;
// ----- Check the path
if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))
$p_path = "./".$p_path;
// COMMENTED OUT FOR MOODLE - IT WAS CAUSING PROBLEMS FOR WINDOWS - Martin 25/5/2003
//
// // ----- Check the path
// if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))
// $p_path = "./".$p_path;
// ----- Reduce the path last (and duplicated) '/'
if (($p_path != "./") && ($p_path != "/"))
@ -4556,4 +4559,4 @@
}
// --------------------------------------------------------------------------------
?>
?>