As we replace spaces with + for those account ids which contain spaces, therefore we need to do the same for getting request-id too.

This commit is contained in:
Hadi Nategh 2014-07-28 15:43:36 +00:00
parent f678f0b924
commit 67aa23f11b

View File

@ -114,7 +114,9 @@ class etemplate_request_cache extends etemplate_request
*/ */
static function request_id() static function request_id()
{ {
return uniqid($GLOBALS['egw_info']['flags']['currentapp'].'_'.$GLOBALS['egw_info']['user']['account_lid'].'_',true); // As we replace spaces with + for those account ids which contain spaces, therefore we need to do the same for getting request id too.
$userID = str_replace(' ', '+', rawurldecode($GLOBALS['egw_info']['user']['account_lid']));
return uniqid($GLOBALS['egw_info']['flags']['currentapp'].'_'.$userID.'_',true);
} }
/** /**