Ticket #3797: wp-comments-post.php-patch-2.1.patch

File wp-comments-post.php-patch-2.1.patch, 443 bytes (added by MikeLittle, 5 years ago)

Patch (against 2.1 branch) to fix this issue.

  • wp-comments-post.php

     
    11<?php 
     2if ($_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; 
     7} 
    28require( dirname(__FILE__) . '/wp-config.php' ); 
    39 
    410nocache_headers();