corrade-http-templates
/groupChat/sendGroupMessage.php |
---|
@@ -17,6 +17,13 @@ |
## INTERNALS ## |
########################################################################### |
# CRSF. |
session_start(); |
if (empty($_POST['token']) || !hash_equals($_SESSION['token'], $_POST['token'])) { |
http_response_code(403); |
die('Forbidden.'); |
} |
# If there is no message set or no name set or if the message or the name |
# are empty then do not proceed any further. |
if(!isset($_POST['message']) || |