Skip to content

Commit

Permalink
Fixed issue #9407: Question and group export uses HTML content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 30, 2014
1 parent ee94476 commit 77357a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/InstallerController.php
Expand Up @@ -593,7 +593,7 @@ function stepPopulateDb()
}
else
{
$sConfirmation = gT('There were errors when trying to populate the database :').'<p><ul>';
$sConfirmation = gT('There were errors when trying to populate the database:').'<p><ul>';
foreach ($aErrors as $sError)
{
$sConfirmation.='<li>'.htmlspecialchars($sError).'</li>';
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/export.php
Expand Up @@ -900,7 +900,7 @@ public function dumplabel()
$fn = "limesurvey_labelset_" . implode('_', $lids) . ".lsl";
$xml = getXMLWriter();

$this->_addHeaders($fn, "text/html/force-download", "Mon, 26 Jul 1997 05:00:00 GMT", "cache");
$this->_addHeaders($fn, "application/force-download", "Mon, 26 Jul 1997 05:00:00 GMT", "cache");

$xml->openURI('php://output');

Expand Down
4 changes: 2 additions & 2 deletions application/helpers/export_helper.php
Expand Up @@ -1509,7 +1509,7 @@ function group_export($action, $iSurveyID, $gid)
$fn = "limesurvey_group_$gid.lsg";
$xml = getXMLWriter();

header("Content-Type: text/html/force-download");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$fn");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Expand Down Expand Up @@ -1611,7 +1611,7 @@ function questionExport($action, $iSurveyID, $gid, $qid)
$fn = "limesurvey_question_$qid.lsq";
$xml = getXMLWriter();

header("Content-Type: text/html/force-download");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$fn");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Expand Down

0 comments on commit 77357a0

Please sign in to comment.