From 7558be0e901706bcbe55eede4505981c562844f8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 1 May 2013 08:20:14 +0000 Subject: [PATCH] set PDF files 0600 --- lam/lib/pdf.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/lib/pdf.inc b/lam/lib/pdf.inc index 8145cbbb..d87da592 100644 --- a/lam/lib/pdf.inc +++ b/lam/lib/pdf.inc @@ -4,7 +4,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) Copyright (C) 2003 - 2004 Michael Duergner - 2003 - 2012 Roland Gruber + 2003 - 2013 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -150,6 +150,7 @@ function createModulePDF($accounts, $pdf_structure="default", $returnAsString = $filename = '../../tmp/' . $_SESSION['ldap']->new_rand() . time() .'.pdf'; // Save PDF $pdf->Output($filename); + chmod($filename, 0600); // return PDF file name return $filename; }