[-] FO: Extension test on file attachment for contact form should not be case sensitive #PSCFV-8616
This commit is contained in:
1 parent
a1ef60043e
commit
24947d3ae6
2 files changed
+2
-2
No files matched your search
@@ -458,7 +458,7 @@ class AdminCustomerThreadsControllerCore extends AdminController
|
||||
|
||||
$extension = false;
|
||||
foreach ($extensions as $key => $val)
|
||||
if (substr($filename, -4) == $key || substr($filename, -5) == $key)
|
||||
if (substr(Tools::strtolower($filename), -4) == $key || substr(Tools::strtolower($filename), -5) == $key)
|
||||
{
|
||||
$extension = $val;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user