Commit 06d84879bb8593bb12402dc401a9e1b1946480ab

Authored by Conrad Vermeulen
1 parent 567884ac

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.

Committed By: Conrad Vermeulen
Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7835 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
ktwebservice/upload.php
... ... @@ -39,6 +39,7 @@
39 39 *
40 40 */
41 41  
  42 +//debugger_start_debug();
42 43 $output = 'php';
43 44 if (array_key_exists('output',$_POST))
44 45 {
... ... @@ -74,7 +75,7 @@ if (!in_array($action,array('C','A')))
74 75 respond(3, 'Invalid action specified.');
75 76 }
76 77  
77   -$session_id = $_POST['session_id'];
  78 +//$session_id = $_POST['session_id'];
78 79 if (count($_FILES) == 0)
79 80 {
80 81 respond(5, 'No files have been uploaded.');
... ... @@ -92,6 +93,7 @@ if ($action == 'C')
92 93 require_once('../ktapi/ktapi.inc.php');
93 94 require_once('KTUploadManager.inc.php');
94 95  
  96 +$session_id = $_POST['session_id'];
95 97 $ktapi = new KTAPI();
96 98 $session = $ktapi->get_active_session($session_id);
97 99 if (PEAR::isError($session))
... ...