MDL-18384 better symlink support, do not recurse symlinks when deleting - patch by Matt Oquist, thanks; backported from MOODLE_19_STABLE
This commit is contained in:
+1
-1
@@ -493,7 +493,7 @@ if (!function_exists('file_get_contents')) {
|
||||
* @param $location the path to remove.
|
||||
*/
|
||||
function fulldelete($location) {
|
||||
if (is_dir($location)) {
|
||||
if (is_dir($location) and !is_link($location)) {
|
||||
$currdir = opendir($location);
|
||||
while (false !== ($file = readdir($currdir))) {
|
||||
if ($file <> ".." && $file <> ".") {
|
||||
|
||||
Reference in New Issue
Block a user