X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/1797cbc2b010552b54e9d070820fa9cbc9ce3af9..c9610f1e514f31982e2d9e79b5ad9b6037551b68:/www/user.php diff --git a/www/user.php b/www/user.php index 8b86a50..364981c 100644 --- a/www/user.php +++ b/www/user.php @@ -5,13 +5,8 @@ namespace phorkie; $reqWritePermissions = true; require_once 'www-header.php'; - -if (isset($_POST['name'])) { - $_SESSION['name'] = substr(filter_var($_POST['name'], FILTER_SANITIZE_STRING), 0, 35); -} - -if (isset($_POST['email'])) { - $_SESSION['email'] = substr(filter_var($_POST['email'], FILTER_SANITIZE_EMAIL), 0, 35); +if (!isset($_SESSION['identity'])) { + require 'forbidden.php'; } render(