From 782edeca44bd46b84d8ced91ce4944ea0ba8fe9a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 16 Feb 2017 17:12:34 -0700 Subject: [PATCH] Update contact_import.php --- app/contacts/contact_import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contacts/contact_import.php b/app/contacts/contact_import.php index 9bddf63ff7..1d83e75d69 100644 --- a/app/contacts/contact_import.php +++ b/app/contacts/contact_import.php @@ -72,7 +72,7 @@ } //copy the csv file - if ($_POST['submit'] == "Upload" && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('contact_upload')) { + if ( is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('contact_upload')) { if (check_str($_POST['type']) == 'csv') { move_uploaded_file($_FILES['ulfile']['tmp_name'], $_SESSION['server']['temp']['dir'].'/'.$_FILES['ulfile']['name']); $save_msg = "Uploaded file to ".$_SESSION['server']['temp']['dir']."/". htmlentities($_FILES['ulfile']['name']);