From 20aa97d937a545472ddb376ffdbefeea5aa0c497 Mon Sep 17 00:00:00 2001 From: Myron Turner Date: Sun, 6 Feb 2011 13:45:23 +0100 Subject: Don't delete the contents of symbolically linked directories in the plugin manager This patch makes the plugin manager not descend into symbolically linked directories as this behaviour is not expected from a recursive delete. --- lib/plugins/plugin/classes/ap_manage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/plugins/plugin/classes') diff --git a/lib/plugins/plugin/classes/ap_manage.class.php b/lib/plugins/plugin/classes/ap_manage.class.php index 2982a3ebb..fb148f263 100644 --- a/lib/plugins/plugin/classes/ap_manage.class.php +++ b/lib/plugins/plugin/classes/ap_manage.class.php @@ -176,7 +176,7 @@ class ap_manage { function dir_delete($path) { if (!is_string($path) || $path == "") return false; - if (is_dir($path)) { + if (is_dir($path) && !is_link($path)) { if (!$dh = @opendir($path)) return false; while ($f = readdir($dh)) { -- cgit v1.2.3