Ticket #3797 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: MikeLittle Assigned to: 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 (443 bytes) - added by MikeLittle on 02/15/07 21:39:12.
Patch (against trunk) to fix this issue.
wp-comments-post.php-patch-2.0.patch (443 bytes) - added by MikeLittle on 02/15/07 21:40:09.
Patch (against 2.0.9) to fix this issue
wp-comments-post.php-patch-2.1.patch (443 bytes) - added by MikeLittle on 02/15/07 21:40:42.
Patch (against 2.1 branch) to fix this issue.

Change History

02/15/07 21:39:12 changed by MikeLittle

  • attachment wp-comments-post.php-patch-trunk.patch added.

Patch (against trunk) to fix this issue.

02/15/07 21:40:09 changed by MikeLittle

  • attachment wp-comments-post.php-patch-2.0.patch added.

Patch (against 2.0.9) to fix this issue

02/15/07 21:40:42 changed by MikeLittle

  • attachment wp-comments-post.php-patch-2.1.patch added.

Patch (against 2.1 branch) to fix this issue.

02/15/07 22:29:43 changed by foolswisdom

  • version set to 2.0.9.
  • milestone changed from 2.3 to 2.1.2.

02/22/07 09:05:44 changed by MikeLittle

  • keywords set to has-patch.

03/28/07 02:26:22 changed by foolswisdom

  • milestone changed from 2.1.3 to 2.2.

03/28/07 02:26:44 changed by foolswisdom

  • owner changed from anonymous to ryan.

03/28/07 17:34:45 changed by ryan

  • 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