diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index f5d67b13517..c350fb003e6 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -282,7 +282,7 @@ print "\n";
// FILTRES
print '
';
print '| ';
-print '';
+print '';
print ' | ';
// DATE CREATE
diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php
index 49923afa2ea..24968839960 100644
--- a/htdocs/projet/card.php
+++ b/htdocs/projet/card.php
@@ -310,10 +310,11 @@ if (empty($reshook))
{
$langs->load("other");
$upload_dir = $conf->projet->dir_output . "/";
- $file = $upload_dir . '/' . GETPOST('file');
+ $urlfile=GETPOST('urlfile','alpha');
+ $file = $upload_dir . '/' . $filetodelete;
$ret=dol_delete_file($file);
- if ($ret) setEventMessage($langs->trans("FileWasRemoved", GETPOST('urlfile')));
- else setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('urlfile')), 'errors');
+ if ($ret) setEventMessage($langs->trans("FileWasRemoved", $urlfile));
+ else setEventMessage($langs->trans("ErrorFailToDeleteFile", $urlfile), 'errors');
}
}