From 67aa23f11b87e66eaed673fea97dd79238ed79e3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 28 Jul 2014 15:43:36 +0000 Subject: [PATCH] As we replace spaces with + for those account ids which contain spaces, therefore we need to do the same for getting request-id too. --- etemplate/inc/class.etemplate_request_cache.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_request_cache.inc.php b/etemplate/inc/class.etemplate_request_cache.inc.php index 82e650561f..10f57c2378 100644 --- a/etemplate/inc/class.etemplate_request_cache.inc.php +++ b/etemplate/inc/class.etemplate_request_cache.inc.php @@ -114,7 +114,9 @@ class etemplate_request_cache extends etemplate_request */ 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); } /**