diff --git a/html/account/index.php b/html/account/index.php index 278163e5..5b4974ce 100644 --- a/html/account/index.php +++ b/html/account/index.php @@ -86,7 +86,7 @@ if (isset($_POST['userDisplayName']) && isset($_POST['userBio'])) { $sqlRequest = "UPDATE users SET display_name = :userDisplayName, bio = :userBio WHERE ID = :userID"; $request = $pdo->prepare($sqlRequest); $request->bindParam(":userDisplayName", htmlspecialchars(substr($_POST['userDisplayName'], 0, 20))); - $request->bindParam(":userBio", htmlspecialchars(substr($_POST['userBio'], 200))); + $request->bindParam(":userBio", htmlspecialchars(substr($_POST['userBio'], 0, 200))); $request->bindParam(":userID", $_SESSION['userID']); if($request->execute()) { $status = "Informations mises à jour";