Commit 06d84879bb8593bb12402dc401a9e1b1946480ab
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,6 +39,7 @@ | ||
| 39 | * | 39 | * |
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | +//debugger_start_debug(); | ||
| 42 | $output = 'php'; | 43 | $output = 'php'; |
| 43 | if (array_key_exists('output',$_POST)) | 44 | if (array_key_exists('output',$_POST)) |
| 44 | { | 45 | { |
| @@ -74,7 +75,7 @@ if (!in_array($action,array('C','A'))) | @@ -74,7 +75,7 @@ if (!in_array($action,array('C','A'))) | ||
| 74 | respond(3, 'Invalid action specified.'); | 75 | respond(3, 'Invalid action specified.'); |
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | -$session_id = $_POST['session_id']; | 78 | +//$session_id = $_POST['session_id']; |
| 78 | if (count($_FILES) == 0) | 79 | if (count($_FILES) == 0) |
| 79 | { | 80 | { |
| 80 | respond(5, 'No files have been uploaded.'); | 81 | respond(5, 'No files have been uploaded.'); |
| @@ -92,6 +93,7 @@ if ($action == 'C') | @@ -92,6 +93,7 @@ if ($action == 'C') | ||
| 92 | require_once('../ktapi/ktapi.inc.php'); | 93 | require_once('../ktapi/ktapi.inc.php'); |
| 93 | require_once('KTUploadManager.inc.php'); | 94 | require_once('KTUploadManager.inc.php'); |
| 94 | 95 | ||
| 96 | +$session_id = $_POST['session_id']; | ||
| 95 | $ktapi = new KTAPI(); | 97 | $ktapi = new KTAPI(); |
| 96 | $session = $ktapi->get_active_session($session_id); | 98 | $session = $ktapi->get_active_session($session_id); |
| 97 | if (PEAR::isError($session)) | 99 | if (PEAR::isError($session)) |