This commit is contained in:
surrim 2020-03-16 23:51:17 +01:00
parent 9dd182b24c
commit bd70590359

View File

@ -1839,6 +1839,7 @@ function serendipity_killPath($basedir, $directory = '', $forceDelete = false) {
static $serious = true;
if ($handle = @opendir($basedir . $directory)) {
$filestack = [];
while (false !== ($file = @readdir($handle))) {
if ($file != '.' && $file != '..') {
if (is_dir($basedir . $directory . $file)) {