mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
using serialize to create hash to not fall short if some non-utf-8 or non-json-decodable data is in parameters
This commit is contained in:
parent
24478fe0d5
commit
ed1c1daf4a
@ -1573,7 +1573,8 @@ class egw_link extends solink
|
||||
return null;
|
||||
}
|
||||
array_unshift($params, $method);
|
||||
$id = md5(json_encode($params));
|
||||
$id = md5(serialize($params));
|
||||
//error_log(__METHOD__."('$mime_type', '$method', ...) params=".array2string($params)." --> json=".array2string(serialize($params)).' --> id='.array2string($id));
|
||||
egw_cache::setSession(__CLASS__, $id, $params);
|
||||
return $id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user