WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#3797 closed defect (bug) (fixed)

Requesting wp-comments-post.php with GET should return 405

Reported by: MikeLittle Owned by: ryan
Milestone: 2.2 Priority: low
Severity: normal Version: 2.0.9
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

As pointed out by Elliotte Harold

http://comox.textdrive.com/pipermail/wp-hackers/2007-February/010722.html

if you request wp-comments-post.php with HTTP GET method, it returns 200 OK.

It should return 405 Method Not Allowed.

The RFC also calls for an 'Allowed' header when returning this status.

Attachments (3)

wp-comments-post.php-patch-trunk.patch (443 bytes) - added by MikeLittle 7 years ago.
Patch (against trunk) to fix this issue.
wp-comments-post.php-patch-2.0.patch (443 bytes) - added by MikeLittle 7 years ago.
Patch (against 2.0.9) to fix this issue
wp-comments-post.php-patch-2.1.patch (443 bytes) - added by MikeLittle 7 years ago.
Patch (against 2.1 branch) to fix this issue.

Download all attachments as: .zip

Change History (8)

MikeLittle7 years ago

Patch (against trunk) to fix this issue.

MikeLittle7 years ago

Patch (against 2.0.9) to fix this issue

MikeLittle7 years ago

Patch (against 2.1 branch) to fix this issue.

comment:1 foolswisdom7 years ago

  • Milestone changed from 2.3 to 2.1.2
  • Version set to 2.0.9

comment:2 MikeLittle7 years ago

  • Keywords has-patch added

comment:3 foolswisdom7 years ago

  • Milestone changed from 2.1.3 to 2.2

comment:4 foolswisdom7 years ago

  • Owner changed from anonymous to ryan

comment:5 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5128]) Requesting wp-comments-post.php with GET should return 405. Props Mike Little. fixes #3797

Note: See TracTickets for help on using tickets.