fix var quoting

postfixadmin_3.2
David Goodwin 5 years ago
parent fb671e6166
commit 5e5e4a1c9b

@ -50,13 +50,13 @@ function deldir($dir) {
$current_dir = opendir($dir);
while ($entryname = readdir($current_dir)) {
if (is_dir("$dir/$entryname") and ($entryname != "." and $entryname!="..")) {
deldir("${dir}/${entryname}");
deldir("{$dir}/{$entryname}");
} elseif ($entryname != "." and $entryname!="..") {
unlink("${dir}/${entryname}");
unlink("{$dir}/{$entryname}");
}
}
closedir($current_dir);
@rmdir(${dir});
@rmdir($dir);
}
// --- Main Start ---

Loading…
Cancel
Save