Update contact_import.php

This commit is contained in:
FusionPBX 2017-02-16 17:12:34 -07:00 committed by GitHub
parent f8eee50a62
commit 782edeca44
1 changed files with 1 additions and 1 deletions

View File

@ -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']);