set PDF files 0600

This commit is contained in:
Roland Gruber 2013-05-01 08:20:14 +00:00
parent ebafcf33b1
commit 7558be0e90
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}