From 4e85b36c297f46a7acf002aadab520120772bf17 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 16 Oct 2008 22:54:53 +0000 Subject: [PATCH] Fix:Bad documents download link sometimes --- htdocs/html.formfile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/html.formfile.class.php b/htdocs/html.formfile.class.php index 60c925872e6..98547800a2d 100644 --- a/htdocs/html.formfile.class.php +++ b/htdocs/html.formfile.class.php @@ -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; }