Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bastien Durel
mta-sts
Commits
53707154
Commit
53707154
authored
Aug 30, 2018
by
Bastien Durel
Browse files
return 405 or 301 when not using POST
parent
79beaf30
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.php
View file @
53707154
<?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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment