Merge pull request #675 from surrim/fix_kill_path
fix serendipity_killPath()
This commit is contained in:
commit
b2cebf04ac
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user