From 06d84879bb8593bb12402dc401a9e1b1946480ab Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Tue, 18 Dec 2007 11:24:28 +0000 Subject: [PATCH] KTS-2785 "ktapi.php session variable unsets variable used by upload.php" Fixed. The variable is used to check that the session has not been started already. --- ktwebservice/upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ktwebservice/upload.php b/ktwebservice/upload.php index c967de8..961c789 100644 --- a/ktwebservice/upload.php +++ b/ktwebservice/upload.php @@ -39,6 +39,7 @@ * */ +//debugger_start_debug(); $output = 'php'; if (array_key_exists('output',$_POST)) { @@ -74,7 +75,7 @@ if (!in_array($action,array('C','A'))) respond(3, 'Invalid action specified.'); } -$session_id = $_POST['session_id']; +//$session_id = $_POST['session_id']; if (count($_FILES) == 0) { respond(5, 'No files have been uploaded.'); @@ -92,6 +93,7 @@ if ($action == 'C') require_once('../ktapi/ktapi.inc.php'); require_once('KTUploadManager.inc.php'); +$session_id = $_POST['session_id']; $ktapi = new KTAPI(); $session = $ktapi->get_active_session($session_id); if (PEAR::isError($session)) -- libgit2 0.21.4