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:
ryan 2007-03-28 17:34:42 +00:00
parent 9ed04eae80
commit 0013fcda22
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,10 @@
<?php <?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' ); require( dirname(__FILE__) . '/wp-config.php' );
nocache_headers(); nocache_headers();