"removed unnecessary ambersand in url creation, if no extravars"

This commit is contained in:
Ralf Becker 2009-03-30 08:17:28 +00:00
parent 7f9aace528
commit b976659346

View File

@ -510,7 +510,7 @@ class egw_session
session_regenerate_id(true); session_regenerate_id(true);
} }
$this->sessionid = $no_session ? 'no-session' : session_id(); $this->sessionid = $no_session ? 'no-session' : session_id();
$this->kp3 = $GLOBALS['egw']->common->randomstring(24); $this->kp3 = common::randomstring(24);
unset($GLOBALS['egw_info']['server']['default_domain']); // we kill this for security reasons unset($GLOBALS['egw_info']['server']['default_domain']); // we kill this for security reasons
@ -1020,7 +1020,7 @@ class egw_session
} }
else else
{ {
if ($othervars) $extravars .= '&'.$othervars; if ($othervars) $extravars .= ($extravars?'&':'').$othervars;
} }
// parse extravars string into the vars array // parse extravars string into the vars array