diff options
author | Myron Turner <turnermm02@shaw.ca> | 2011-02-06 13:45:23 +0100 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2011-02-06 13:45:23 +0100 |
commit | 20aa97d937a545472ddb376ffdbefeea5aa0c497 (patch) | |
tree | 07bcac4a35558f9b0a1cfd1421d60c67b79f3513 /lib/plugins/plugin/classes/ap_manage.class.php | |
parent | 45763179f1201839a43b506d07fe01415890a183 (diff) | |
download | rpg-20aa97d937a545472ddb376ffdbefeea5aa0c497.tar.gz rpg-20aa97d937a545472ddb376ffdbefeea5aa0c497.tar.bz2 |
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.
Diffstat (limited to 'lib/plugins/plugin/classes/ap_manage.class.php')
-rw-r--r-- | lib/plugins/plugin/classes/ap_manage.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |