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:
Ryan Boren 2007-03-28 17:34:42 +00:00
parent ff859fce24
commit 82a40d63e6

View File

@ -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();