Updated Useful Functions for Plugin and Theme Security (markdown)

Erwan
2021-05-31 15:20:02 +02:00
parent 019910a020
commit 20d49426a0

@@ -53,7 +53,7 @@ function zip_only_contains_allowed_extensions($zip_path, array $allowed_extensio
// Skip folders name (but their content will be checked)
if (substr($stat['name'], -1) === '/')
continue;
continue;
$ext = pathinfo($stat['name'], PATHINFO_EXTENSION);