Make WordPress Core

Ticket #4573: wp-comments-post.php.diff

File wp-comments-post.php.diff, 585 bytes (added by JeremyVisser, 19 years ago)
  • wp-comments-post.php

     
    11<?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;
     2if ( '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;
    77}
    88require( dirname(__FILE__) . '/wp-config.php' );
    99