CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#7465] Error in the check for content_type in index.php means header is always set to text/html

avatar
Created By: stephen cooper (scooper)
Date Submitted: Mon Jan 16 07:37:42 -0500 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.10
CMSMS Version: 1.10.2
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Error in the check for content_type in index.php means header is always set to text/html
Detailed Description:
At about line 283 in index.php we have a call to see what the header
content_type should be set to. This is currently written as:

$ct = cmsms()->get_variable['content-type'];

ie with square brackets instead of curved brackets. 

It should be:

$ct = cmsms()->get_variable('content-type');

Since $ct doesn't get assigned a sensible value the way we have it at the moment
then the header defaults to text/html no matter what value the
variables['content_type'] is set to.

This is in 1.10.3.


History

Comments
avatar
Date: 2012-01-16 10:26
Posted By: Robert Campbell (calguy1000)

Fixed for 1.11
      
avatar
Date: 2012-08-02 07:30
Posted By: Rolf (rolf1)

CMSMS 1.11 is released
      
Updates

Updated: 2012-08-02 07:30
state: Open => Closed

Updated: 2012-01-16 10:26
resolution_id: => 7