[-] FO: Extension test on file attachment for contact form should not be case sensitive #PSCFV-8616

This commit is contained in:
Rémi Gaillard
2013-04-04 19:03:27 +02:00
parent a1ef60043e
commit 24947d3ae6
2 changed files with 2 additions and 2 deletions
@@ -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;