From d0ff07fbe24c8ff655dfa6459175c275e26f3dcb Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 5 Aug 2010 10:02:28 +0000 Subject: [PATCH] Fix IE Bug : he was not able to open CSV files when https is used --- html/bal_csv.php | 1 + html/ca_bc_csv.php | 1 + html/ca_bs_csv.php | 2 +- html/ca_list_csv.php | 1 + html/fiche_csv.php | 1 + html/form_csv.php | 1 + html/gl_comptes_csv.php | 2 ++ html/jrn_csv.php | 1 + html/poste_csv.php | 1 + html/quick_code_csv.php | 2 ++ 10 files changed, 12 insertions(+), 1 deletion(-) diff --git a/html/bal_csv.php b/html/bal_csv.php index cca1647ce..a19217dd9 100644 --- a/html/bal_csv.php +++ b/html/bal_csv.php @@ -21,6 +21,7 @@ /*! \file * \brief Return the balance in CSV format */ +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="balance.csv"',FALSE); include_once ("ac_common.php"); diff --git a/html/ca_bc_csv.php b/html/ca_bc_csv.php index e813a355c..2cde2ea61 100644 --- a/html/ca_bc_csv.php +++ b/html/ca_bc_csv.php @@ -28,6 +28,7 @@ * */ header('Content-type: application/csv'); +header('Pragma: public'); header('Content-Disposition: attachment;filename="ca_bal_croise.csv"',FALSE); require_once ('class_anc_balance_double.php'); diff --git a/html/ca_bs_csv.php b/html/ca_bs_csv.php index c61d70f70..a0f10524c 100644 --- a/html/ca_bs_csv.php +++ b/html/ca_bs_csv.php @@ -23,7 +23,7 @@ /*!\file * \brief export the operation in pdf */ - +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="ca_bal_simple.csv"',FALSE); diff --git a/html/ca_list_csv.php b/html/ca_list_csv.php index e002f8a73..b985cb3cc 100644 --- a/html/ca_list_csv.php +++ b/html/ca_list_csv.php @@ -24,6 +24,7 @@ * \brief export the operation in pdf * */ +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="jrn.csv"',FALSE); diff --git a/html/fiche_csv.php b/html/fiche_csv.php index 1c44d2ddb..93409bac4 100644 --- a/html/fiche_csv.php +++ b/html/fiche_csv.php @@ -22,6 +22,7 @@ * \brief Send a CSV file with card */ +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="fiche.csv"',FALSE); include_once ("ac_common.php"); diff --git a/html/form_csv.php b/html/form_csv.php index bcc42e9e5..dab8698ec 100644 --- a/html/form_csv.php +++ b/html/form_csv.php @@ -26,6 +26,7 @@ require_once('class_database.php'); include ('class_user.php'); require_once("class_acc_report.php"); require_once("impress_inc.php"); +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="rapport.csv"',FALSE); require_once('class_dossier.php'); diff --git a/html/gl_comptes_csv.php b/html/gl_comptes_csv.php index 970ab5324..769e2d79a 100644 --- a/html/gl_comptes_csv.php +++ b/html/gl_comptes_csv.php @@ -35,6 +35,8 @@ require_once('class_user.php'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="gl_comptes.csv"',FALSE); +header('Pragma: public'); + $gDossier=dossier::id(); diff --git a/html/jrn_csv.php b/html/jrn_csv.php index 8d937ecca..72ea45fa8 100644 --- a/html/jrn_csv.php +++ b/html/jrn_csv.php @@ -22,6 +22,7 @@ * \brief Send a ledger in CSV format */ +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="jrn.csv"',FALSE); include_once ("ac_common.php"); diff --git a/html/poste_csv.php b/html/poste_csv.php index e2f0fc39b..ec83e0065 100644 --- a/html/poste_csv.php +++ b/html/poste_csv.php @@ -27,6 +27,7 @@ include ('class_user.php'); require_once("class_acc_account_ledger.php"); require_once ('class_acc_operation.php'); +header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="poste.csv"',FALSE); require_once('class_dossier.php'); diff --git a/html/quick_code_csv.php b/html/quick_code_csv.php index cc3ce8717..100bbd33f 100644 --- a/html/quick_code_csv.php +++ b/html/quick_code_csv.php @@ -26,6 +26,8 @@ require_once('class_database.php'); include ('class_user.php'); require_once("class_fiche.php"); header('Content-type: application/csv'); + +header('Pragma: public'); header('Content-Disposition: attachment;filename="poste.csv"',FALSE); require_once('class_dossier.php'); $gDossier=dossier::id();