fail en fait c'était 5 :c
This commit is contained in:
parent
f0efc1e52f
commit
e208eb9841
1 changed files with 1 additions and 1 deletions
2
bdd.php
2
bdd.php
|
@ -110,7 +110,7 @@ function saveFilesFromPost($postData,$id_ensemble) {
|
|||
if (isset($file['name'])){
|
||||
$fileName = htmlspecialchars($file['name']);
|
||||
// le dernier check est pour autoriser l'upload de fichiers html aux admins
|
||||
if(!check_ext($fileName) || $safe_type == 0 || ($safe_type == 4 && !$_SESSION["admin"])){
|
||||
if(!check_ext($fileName) || $safe_type == 0 || ($safe_type == 5 && !$_SESSION["admin"])){
|
||||
echo(json_encode(["status"=>"0","msg"=>"le fichier '$fileName' n'a pas passé les filtres de contenu. ( dommaaaaggee :c )"]));
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue