Fix xmlrpc critical bugs

This commit is contained in:
loic 2001-10-10 15:10:56 +00:00
parent c7aacc344f
commit fe9cae6737
4 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@
} }
} }
if ($functionparams != '_UNDEF_' && ($functionparams || $functionparams != 'True')) if ((is_array($functionparams) || $functionparams != '_UNDEF_') && ($functionparams || $functionparams != 'True'))
{ {
return $GLOBALS[$classname]->$functionname($functionparams); return $GLOBALS[$classname]->$functionname($functionparams);
} }

View File

@ -689,7 +689,7 @@
if($server_name) 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 else
{ {
@ -701,7 +701,7 @@
{ {
$user = $username; $user = $username;
} }
$sessionid = $GLOBALS['phpgw']->session->create($user,$password); $sessionid = $GLOBALS['phpgw']->session->create($user,$password,"text");
$kp3 = $GLOBALS['phpgw']->session->kp3; $kp3 = $GLOBALS['phpgw']->session->kp3;
$domain = $GLOBALS['phpgw']->session->account_domain; $domain = $GLOBALS['phpgw']->session->account_domain;
} }

View File

@ -334,7 +334,7 @@
'ix' => array(), 'ix' => array(),
'uc' => array() 'uc' => array()
), ),
'phpgw_history_log', array( 'phpgw_history_log' => array(
'fd' => array( 'fd' => array(
'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False),
'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False), 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False),

View File

@ -2139,7 +2139,7 @@
function phpgwapi_upgrade0_9_13_013() function phpgwapi_upgrade0_9_13_013()
{ {
$GLOBALS['phpgw_setup']->oProc->CreateTable( $GLOBALS['phpgw_setup']->oProc->CreateTable(
'phpgw_history_log', array( 'phpgw_history_log' => array(
'fd' => array( 'fd' => array(
'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False), 'history_id' => array('type' => 'auto', 'precision' => 4, 'nullable' => False),
'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False), 'history_record_id' => array('type' => 'int', 'precision' => 4, 'nullable' => False),