[-] BO : images extension weren't checked appropriately #PSCFV-3584

This commit is contained in:
dMetzger
2012-08-10 08:30:22 +00:00
parent 418eb07ecd
commit 4e7a91007c
+1 -1
View File
@@ -237,7 +237,7 @@ class ImageManagerCore
// Filter on file extension
$authorized_extensions = array('gif', 'jpg', 'jpeg', 'jpe', 'png');
$name_explode = explode('.', $filename);
if (count($name_explode))
if (count($name_explode) >= 2)
{
$current_extension = strtolower($name_explode[count($name_explode) - 1]);
if (!in_array($current_extension, $authorized_extensions))