Ticket #4573: wp-comments-post.php.diff
| File wp-comments-post.php.diff, 585 bytes (added by , 19 years ago) |
|---|
-
wp-comments-post.php
1 1 <?php 2 if ( $_SERVER["REQUEST_METHOD"] != "POST") {3 header('Allow: POST');4 header( "HTTP/1.1 405 Method Not Allowed");5 header( "Content-Type: text/plain");6 exit;2 if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { 3 header('Allow: POST'); 4 header('HTTP/1.1 405 Method Not Allowed'); 5 header('Content-Type: text/plain'); 6 exit; 7 7 } 8 8 require( dirname(__FILE__) . '/wp-config.php' ); 9 9