From ca877168250ace65d30b6c1f8838c9248023b616 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Wed, 25 Oct 2006 19:35:50 +0000 Subject: [PATCH] #487: Fix cacert access from IE git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1025 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/platal.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/platal.php b/modules/platal.php index 35514b8..7d72369 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -39,7 +39,7 @@ class PlatalModule extends PLModule { return array( 'index' => $this->make_hook('index', AUTH_PUBLIC), - 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC), + 'cacert.pem' => $this->make_hook('cacert', AUTH_PUBLIC), 'changelog' => $this->make_hook('changelog', AUTH_PUBLIC), // Preferences thingies @@ -71,14 +71,13 @@ class PlatalModule extends PLModule function handler_cacert(&$page) { - if (preg_match('/MSIE/i', $_SERVER['HTTP_USER_AGENT'])) - { - $data = file_get_contents('/etc/ssl/xorgCA/cacert.der'); - } else { - $data = file_get_contents('/etc/ssl/xorgCA/cacert.pem'); - } - header('Content-Type: application/x-x509-ca-cert'); - header('Content-Length: '.strlen($data)); + $data = file_get_contents("/etc/ssl/xorgCA/cacert.pem","r"); + header("Pragma:"); + header("Set-Cookie:"); + header("Cache-Control:"); + header("Expires:"); + header("Content-Type: application/x-x509-ca-cert"); + header("Content-Length: ".strlen($data)); echo $data; exit; } -- 2.1.4