From fe9cae67372ac78d17394eb08b0e958bbc2566ea Mon Sep 17 00:00:00 2001 From: loic Date: Wed, 10 Oct 2001 15:10:56 +0000 Subject: [PATCH] Fix xmlrpc critical bugs --- phpgwapi/inc/functions.inc.php | 2 +- phpgwapi/inc/xml_functions.inc.php | 4 ++-- phpgwapi/setup/tables_current.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index c466514afc..710e44a0c5 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -132,7 +132,7 @@ } } - if ($functionparams != '_UNDEF_' && ($functionparams || $functionparams != 'True')) + if ((is_array($functionparams) || $functionparams != '_UNDEF_') && ($functionparams || $functionparams != 'True')) { return $GLOBALS[$classname]->$functionname($functionparams); } diff --git a/phpgwapi/inc/xml_functions.inc.php b/phpgwapi/inc/xml_functions.inc.php index 310804f201..90af373c24 100644 --- a/phpgwapi/inc/xml_functions.inc.php +++ b/phpgwapi/inc/xml_functions.inc.php @@ -689,7 +689,7 @@ if($server_name) { - list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create_server($username.'@'.$server_name,$password); + list($sessionid,$kp3) = $GLOBALS['phpgw']->session->create_server($username.'@'.$server_name,$password,"text"); } else { @@ -701,7 +701,7 @@ { $user = $username; } - $sessionid = $GLOBALS['phpgw']->session->create($user,$password); + $sessionid = $GLOBALS['phpgw']->session->create($user,$password,"text"); $kp3 = $GLOBALS['phpgw']->session->kp3; $domain = $GLOBALS['phpgw']->session->account_domain; } diff --git a/phpgwapi/setup/tables_current.inc.php b/phpgwapi/setup/tables_current.inc.php index e2f140078d..5f72ac4eeb 100644 --- a/phpgwapi/setup/tables_current.inc.php +++ b/phpgwapi/setup/tables_current.inc.php @@ -334,7 +334,7 @@ 'ix' => array(), 'uc' => array() ), - 'phpgw_history_log', array( + 'phpgw_history_log' => array( 'fd' => array( 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False), diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 71def6d6fe..1edd2ca454 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -2139,7 +2139,7 @@ function phpgwapi_upgrade0_9_13_013() { $GLOBALS['phpgw_setup']->oProc->CreateTable( - 'phpgw_history_log', array( + 'phpgw_history_log' => array( 'fd' => array( 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False),