mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
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:
parent
c4ad9158e3
commit
3926deafe1
@ -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')."'");
|
//--(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;
|
$v_result=1;
|
||||||
|
|
||||||
// ----- Check the path
|
// COMMENTED OUT FOR MOODLE - IT WAS CAUSING PROBLEMS FOR WINDOWS - Martin 25/5/2003
|
||||||
if (($p_path == "") || ((substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../")))
|
//
|
||||||
$p_path = "./".$p_path;
|
// // ----- 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) '/'
|
// ----- Reduce the path last (and duplicated) '/'
|
||||||
if (($p_path != "./") && ($p_path != "/"))
|
if (($p_path != "./") && ($p_path != "/"))
|
||||||
@ -4556,4 +4559,4 @@
|
|||||||
}
|
}
|
||||||
// --------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user