Commit 53707154 authored by Bastien Durel's avatar Bastien Durel
Browse files

return 405 or 301 when not using POST

parent 79beaf30
<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
http_response_code(301);
header('Location: admin.php');
die();
}
if ($_SERVER['REQUEST_METHOD'] != 'POST') die("unknown method");
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
http_response_code(405);
die("unknown method");
}
define('MAX_REPORT_BY_ORG', 100000);
define('MAX_REPORT_BY_NET', 100000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment