ResponsiveFilemanager icon indicating copy to clipboard operation
ResponsiveFilemanager copied to clipboard

execute.php not handeling custom config.php in new style

Open WebVooruit opened this issue 5 years ago • 0 comments

I noticed that custom config with rules wether or not one is allowed to delete or rename folders doesn't work in the execute.php.

After having a look I noticed that the code (line 43) in execute.php doesn't doe the array_merge like other files do.

    if (file_exists($path . "config.php")) {
        require_once $path . "config.php";
        $cycle = false;
    }

I have changed this into:

    if (file_exists($path . "config.php")) {
        $configTemp = include $path . 'config.php';
        $config = array_merge($config, $configTemp);
        $cycle = false;
    }

This matches what dialog.php and upload.php use for loading a custom config.php .

WebVooruit avatar Sep 24 '20 07:09 WebVooruit