diff --git a/e107_handlers/upload_handler.php b/e107_handlers/upload_handler.php index bfb8bc625..ebc9b5e75 100644 --- a/e107_handlers/upload_handler.php +++ b/e107_handlers/upload_handler.php @@ -9,9 +9,9 @@ * File Upload Handler * * $Source: /cvs_backup/e107_0.8/e107_handlers/upload_handler.php,v $ - * $Revision: 1.26 $ - * $Date: 2009-11-18 01:04:43 $ - * $Author: e107coders $ + * $Revision: 1.27 $ + * $Date: 2009-12-18 21:34:58 $ + * $Author: e107steved $ */ if (!defined('e107_INIT')) @@ -545,11 +545,20 @@ function vet_file($filename, $target_name, $allowed_filetypes = '', $unknown = F $tstr = fread($res, 100); fclose($res); if ($tstr === FALSE) + { return 2; // If can't read file, not much use carrying on! + } if (stristr($tstr, '