mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-28 12:01:13 -04:00
FE: Hardening
This commit is contained in:
1 parent
90f2714639
commit
7795037843
3 files changed
+4
-2
No files matched your search
@@ -17,6 +17,8 @@ global $configFolderPath;
|
||||
// Handle incoming requests
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
requireCsrfToken();
|
||||
|
||||
$base64Data = $_POST['base64data'] ?? null;
|
||||
if (!$base64Data) {
|
||||
http_response_code(400);
|
||||
|
||||
Reference in new issue
Block a user