wibble
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Mon, 13 Dec 2004 20:04:33 +0000 (20:04 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:40 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-93

htdocs/cacert.php

index a478c8e..f343af4 100644 (file)
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-  $fp=fopen("/etc/ssl/xorgCA/cacert.pem","r");
-  $data=fread($fp,10000);
-  fclose($fp);
-  Header("Content-Type: application/x-x509-ca-cert");
-  Header("Content-Length: ".strlen($data));
-  echo $data;
+$data = file_get_contents("/etc/ssl/xorgCA/cacert.pem","r");
+Header("Content-Type: application/x-x509-ca-cert");
+Header("Content-Length: ".strlen($data));
+echo $data;
 ?>