Make WordPress Core

Changeset 5128


Ignore:
Timestamp:
03/28/2007 05:34:42 PM (18 years ago)
Author:
ryan
Message:

Requesting wp-comments-post.php with GET should return 405. Props Mike Little. fixes #3797

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r5089 r5128  
    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
Note: See TracChangeset for help on using the changeset viewer.