From fbbbe865764cc301a98890863f114898c9ac4b07 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Fri, 31 Dec 2004 18:19:57 +0000
Subject: [PATCH] =?UTF-8?q?Fix:=20Utilisation=20du=20wrapper=20s=E9curis?=
 =?UTF-8?q?=E9=20pour=20tous?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 htdocs/fichinter/fiche.php           | 2 +-
 htdocs/fichinter/fichinter.class.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index 08b2f41f3ea..eac271c47df 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -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>';
 	}  
diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php
index 6ccffb977f6..34df2091ccf 100644
--- a/htdocs/fichinter/fichinter.class.php
+++ b/htdocs/fichinter/fichinter.class.php
@@ -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);
-- 
GitLab