Skip to content
Snippets Groups Projects
Commit fbbbe865 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Utilisation du wrapper sécurisé pour tous

parent 16371187
No related branches found
No related tags found
No related merge requests found
...@@ -399,7 +399,7 @@ if ($_GET["id"]) ...@@ -399,7 +399,7 @@ if ($_GET["id"])
if (file_exists($file)) if (file_exists($file))
{ {
print "<tr $bc[0]><td>Ficheinter PDF</a></td>"; print "<tr $bc[0]><td>Ficheinter PDF</a></td>";
print '<td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=ficheinter&file='.urlencode($relativepath).'">'.$fichinter->ref.'.pdf</a></td>'; print '<td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=ficheinter&file='.urlencode($relativepath).'.pdf">'.$fichinter->ref.'.pdf</a></td>';
print '<td align="right">'.filesize($file). ' bytes</td>'; print '<td align="right">'.filesize($file). ' bytes</td>';
print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'</td></tr>'; print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'</td></tr>';
} }
......
...@@ -202,7 +202,7 @@ class Fichinter ...@@ -202,7 +202,7 @@ class Fichinter
{ {
chmod($file, 0444); chmod($file, 0444);
} }
$filepdf = FICHEINTER_OUTPUTDIR . "/$this->ref/$this->ref.pdf"; $filepdf = $conf->ficheinter->dir_output . "/$this->ref/$this->ref.pdf";
if (is_writeable($filepdf)) if (is_writeable($filepdf))
{ {
chmod($filepdf, 0444); chmod($filepdf, 0444);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment