Merge pull request #675 from surrim/fix_kill_path

fix serendipity_killPath()
This commit is contained in:
Garvin Hicking 2020-03-17 11:56:58 +01:00 committed by GitHub
commit b2cebf04ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {