Changeset 5128

Show
Ignore:
Timestamp:
03/28/07 17:34:42 (2 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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