Requesting wp-comments-post.php with GET should return 405. Props Mike Little. fixes #3797
git-svn-id: http://svn.automattic.com/wordpress/trunk@5128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ed04eae80
commit
0013fcda22
|
@ -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…
Reference in New Issue