Opened 8 years ago
Closed 5 years ago
#15973 closed defect (fixed)
Incorrect array key in xhrDummyMethod.php
Reported by: | jonathansampson | Owned by: | dylan |
---|---|---|---|
Priority: | low | Milestone: | 1.8.11 |
Component: | IO | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Key "HTTP_CONTENT_TYPE" is assumed on the $_SERVER super global, but is not actually present. The desired key is instead "CONTENT_TYPE".
This causes the xhrDummyMethod test to fail. Swapping the keys restores the test to a passing state.
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if(!strcmp($_SERVER['HTTP_CONTENT_TYPE'], 'application/x-www-form-urlencoded')){ $post = fix_raw_data(file_get_contents('php://input')); }else{ $post = $_POST; } }
Change History (2)
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.10.5 |
---|---|
Owner: | changed from Bryan Forbes to dylan |
Status: | new → assigned |
comment:2 Changed 5 years ago by
Milestone: | 1.10.5 → 1.8.11 |
---|---|
Priority: | undecided → low |
Resolution: | → fixed |
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
The tests were completely rewritten for 1.11, but this is still an issue with the 1.10 and earlier branches. It's an easy fix, so I'll make it.