strtolower on file extension

This commit is contained in:
Michael RICOIS 2013-03-27 14:23:37 +00:00
parent e9b590c889
commit 663dd7bdd1

View File

@ -984,7 +984,7 @@ class SaisieController extends Zend_Controller_Action
$extValide = array('pdf');
$extension = strrchr($n,'.');
$extension = substr($extension,1);
$extension = strtolower(substr($extension,1));
//Vérifier l'extension du fichier
if( !in_array($extension, $extValide) ){
echo "Extension de fichier incorrect !";