backport #487 cacert.pem
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 24 Oct 2006 23:06:46 +0000 (23:06 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 24 Oct 2006 23:06:46 +0000 (23:06 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1023 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/platal.php

index e92a831..35514b8 100644 (file)
@@ -71,7 +71,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;