From 982ac1e5293b889a0810437a4ad794a6d74f048c Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Tue, 16 Jan 2024 18:05:45 +0100 Subject: [PATCH] =?UTF-8?q?bon=20bah=20c'=C3=A9tait=20pas=20=C3=A7a=20:(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.php | 4 ++-- bdd.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api.php b/api.php index d0807ee..b33c18c 100644 --- a/api.php +++ b/api.php @@ -185,10 +185,10 @@ case "aj_doc": - /*if(!$csrf->validate($context='televersement',$_POST["jeton-csrf"])){ + if(!$csrf->validate($context='televersement',$_POST["jeton-csrf"])){ echo( json_encode(["status"=> "2","msg"=>"jeton csrf manquant.".$_POST["jeton-csrf"]]) ); break; - }*/ + } try{ ajouter_doc($_POST); diff --git a/bdd.php b/bdd.php index 305a175..bb287b2 100644 --- a/bdd.php +++ b/bdd.php @@ -48,7 +48,6 @@ function ajouter_doc($request){ global $conn; - print_r($request); // Check connection if ($conn->connect_error) {