Fix: Utilisation du wrapper scuris pour tous

This commit is contained in:
Laurent Destailleur 2004-12-31 18:19:57 +00:00
parent 163711871a
commit fbbbe86576
2 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ if ($_GET["id"])
if (file_exists($file))
{
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">'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'</td></tr>';
}

View File

@ -202,7 +202,7 @@ class Fichinter
{
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))
{
chmod($filepdf, 0444);