Ticket #3797 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: MikeLittle Owned by: ryan
Priority: low Milestone: 2.2
Component: Administration Version: 2.0.9
Severity: normal Keywords: has-patch
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

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

Change History

Patch (against trunk) to fix this issue.

Patch (against 2.0.9) to fix this issue

Patch (against 2.1 branch) to fix this issue.

  • Version set to 2.0.9
  • Milestone changed from 2.3 to 2.1.2
  • Keywords has-patch added
  • Milestone changed from 2.1.3 to 2.2
  • Owner changed from anonymous to ryan

comment:5   ryan5 years ago

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

(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.