strtolower on file extension
This commit is contained in:
parent
e9b590c889
commit
663dd7bdd1
@ -984,7 +984,7 @@ class SaisieController extends Zend_Controller_Action
|
|||||||
|
|
||||||
$extValide = array('pdf');
|
$extValide = array('pdf');
|
||||||
$extension = strrchr($n,'.');
|
$extension = strrchr($n,'.');
|
||||||
$extension = substr($extension,1);
|
$extension = strtolower(substr($extension,1));
|
||||||
//Vérifier l'extension du fichier
|
//Vérifier l'extension du fichier
|
||||||
if( !in_array($extension, $extValide) ){
|
if( !in_array($extension, $extValide) ){
|
||||||
echo "Extension de fichier incorrect !";
|
echo "Extension de fichier incorrect !";
|
||||||
|
Loading…
Reference in New Issue
Block a user