mirror of
git://develop.git.wordpress.org/
synced 2025-03-14 17:09:47 +01:00
Requesting wp-comments-post.php with GET should return 405. Props Mike Little. fixes #3797
git-svn-id: https://develop.svn.wordpress.org/trunk@5128 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ff859fce24
commit
82a40d63e6
@ -1,4 +1,10 @@
|
||||
<?php
|
||||
if ($_SERVER["REQUEST_METHOD"] != "POST") {
|
||||
header('Allow: POST');
|
||||
header("HTTP/1.1 405 Method Not Allowed");
|
||||
header("Content-type: text/plain");
|
||||
exit;
|
||||
}
|
||||
require( dirname(__FILE__) . '/wp-config.php' );
|
||||
|
||||
nocache_headers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user