From 40c128aa4df9033e0cc7b94a79a93f2e3985c623 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 8 Nov 2003 15:17:43 +0000 Subject: [PATCH] undo --- addressbook/csv_import.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addressbook/csv_import.php b/addressbook/csv_import.php index 1678a0b433..7a047b8dd4 100644 --- a/addressbook/csv_import.php +++ b/addressbook/csv_import.php @@ -36,9 +36,7 @@ $GLOBALS['phpgw']->template->set_block('import','ffooter','ffooterhandle'); $GLOBALS['phpgw']->template->set_block('import','imported','importedhandle'); -// $csvfile = isset($_POST['csvfile']) ? $_POST['csvfile'] : $_FILES['csvfile']['tmp_name']; -// Possible fix for security issue. - $csvfile = $_FILES['csvfile']['tmp_name']; + $csvfile = isset($_POST['csvfile']) ? $_POST['csvfile'] : $_FILES['csvfile']['tmp_name']; if(($_POST['action'] == 'download' || $_POST['action'] == 'continue') && (!$_POST['fieldsep'] || !$csvfile || !($fp=fopen($csvfile,'rb')))) {