From: x2001corpet Date: Tue, 24 Oct 2006 23:03:13 +0000 (+0000) Subject: resoud #487 a condition qu'un root mette en place le cacert.der X-Git-Tag: xorg/0.9.11~9 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=edf082264aa6cf4b213f245c95b68489de55e2f4;p=platal.git resoud #487 a condition qu'un root mette en place le cacert.der git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@1022 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/platal.php b/modules/platal.php index 3115ea4..a25e405 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -74,7 +74,12 @@ class PlatalModule extends PLModule function handler_cacert(&$page) { - $data = file_get_contents('/etc/ssl/xorgCA/cacert.pem'); + 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)); echo $data;