From 68240ca9971fc0b1650757ec2403fc74146340f0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 8 Jan 2010 09:12:48 +0000 Subject: [PATCH] Fix: add virus alert --- htdocs/admin/security_other.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php index 0044e050c86..7d02153857d 100644 --- a/htdocs/admin/security_other.php +++ b/htdocs/admin/security_other.php @@ -51,6 +51,12 @@ if ($_POST["sendit"] && ! empty($conf->global->MAIN_UPLOAD_DOC)) $mesg = '
'.$langs->trans("FileTransferComplete").'
'; //print_r($_FILES); } + else if (is_numeric($resupload) && $resupload == -99) + { + // Echec transfert (virus ?) + $mesg = '
'.$langs->trans("ErrorFileIsInfectedWith"); + $mesg.= '
'; + } else { // Echec transfert (fichier depassant la limite ?)