Fix:Bad documents download link sometimes

This commit is contained in:
Laurent Destailleur 2008-10-16 22:54:53 +00:00
parent 694df3468a
commit 4e85b36c29

View File

@ -418,7 +418,7 @@ class FormFile
// Define relative path used to store the file
if (! $relativepath)
{
$relativepath=$object->ref.'/';
$relativepath=sanitize_string($object->ref).'/';
if ($modulepart == 'facture_fournisseur') $relativepath=get_exdir($object->id,2).$relativepath;
}