Updated Useful Functions for Plugin and Theme Security (markdown)
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user