Changes between Initial Version and Version 1 of Ticket #27498
- Timestamp:
- 03/24/2014 09:41:38 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27498
-
Property
Version
changed from
trunk
to3.1
-
Property
Version
changed from
-
Ticket #27498 – Description
initial v1 1 If $_POSTis empty a canonical redirect is still made even though it should be ignored upon all POST requests. As this redirect occurs before user have a chance to handle the request themselves in a template_redirect filter it prevents users to write proper REST APIs that include POST requests with no data.1 If `$_POST` is empty a canonical redirect is still made even though it should be ignored upon all POST requests. As this redirect occurs before user have a chance to handle the request themselves in a template_redirect filter it prevents users to write proper REST APIs that include POST requests with no data. 2 2 3 A patch that uses $_SERVER['REQUEST_METHOD'] instead of relying on the $_POSTvariable to identify request type is attached.3 A patch that uses `$_SERVER['REQUEST_METHOD']` instead of relying on the `$_POST` variable to identify request type is attached.