From d8692a29f7985579367c2156c8e2d92b1ee48def Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Sat, 11 Oct 2003 13:30:52 +0000 Subject: [PATCH] some small fixes from dave hall --- phpgwapi/inc/class.phpgw.inc.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/phpgwapi/inc/class.phpgw.inc.php b/phpgwapi/inc/class.phpgw.inc.php index 802b1ce073..af27732f3c 100644 --- a/phpgwapi/inc/class.phpgw.inc.php +++ b/phpgwapi/inc/class.phpgw.inc.php @@ -106,6 +106,26 @@ function redirect_link($url = '',$extravars='') { + if(@defined('PHPGW_PHPSESSID') && + @defined('SID'))//add support for non cookie based php4 sessions + { + if(is_array($extravars)) + { + list($ignore, $id) =explode('=',SID); + $extravars[PHPGW_PHPSESSID] = $id; + } + else + { + if($extravars) + { + $extravars .= SID; + } + else + { + $extravars = SID; + } + } + } $this->redirect($this->session->link($url, $extravars)); }