Skip to content
Snippets Groups Projects
Commit 20aa97d9 authored by Myron Turner's avatar Myron Turner Committed by Michael Hamann
Browse files

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.
parent 45763179
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment