Opened 9 years ago

Closed 6 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:


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(!strcmp($_SERVER['HTTP_CONTENT_TYPE'], 'application/x-www-form-urlencoded')){
    $post = fix_raw_data(file_get_contents('php://input'));
    $post = $_POST;

Change History (2)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.10.5
Owner: changed from Bryan Forbes to dylan
Status: newassigned

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.

Note: See TracTickets for help on using tickets.