diff -ruN .\limesurvey-orig/admin/export_structure_quexml.php .\limesurvey-exportfix/admin/export_structure_quexml.php --- .\limesurvey-orig/admin/export_structure_quexml.php 2010-08-19 05:43:49.000000000 +0100 +++ .\limesurvey-exportfix/admin/export_structure_quexml.php 2010-12-07 16:09:29.351673300 +0000 @@ -517,12 +517,12 @@ $fn = "survey_$surveyid.xml"; -header("Content-Type: application/download"); +header("Content-Type: text/xml"); 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"); Header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); -header("Pragma: no-cache"); // HTTP/1.0 +header("Pragma: public"); // HTTP/1.0 echo $dom->dump_mem(true,'UTF-8'); exit; diff -ruN .\limesurvey-orig/admin/export_structure_xml.php .\limesurvey-exportfix/admin/export_structure_xml.php --- .\limesurvey-orig/admin/export_structure_xml.php 2010-12-07 15:54:47.717719500 +0000 +++ .\limesurvey-exportfix/admin/export_structure_xml.php 2010-12-07 16:09:42.389673300 +0000 @@ -197,12 +197,12 @@ if (!isset($copyfunction)) { $fn = "limesurvey_survey_$surveyid.lss"; - header("Content-Type: text/html/force-download"); + header("Content-Type: text/xml"); 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"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); - header("Pragma: cache"); // HTTP/1.0 + header("Pragma: public"); // HTTP/1.0 echo getXMLData(); exit; }