mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 18:29:02 -04:00
added consistency check in meta data in publishGroup() and updateGroup() in order to avoid bad data supplied from GXS services
This commit is contained in:
parent
d2dc632176
commit
06265f2b54
6 changed files with 106 additions and 21 deletions
|
@ -690,6 +690,7 @@ bool p3IdService::createIdentity(uint32_t& token, RsIdentityParameters ¶ms)
|
|||
RsGxsIdGroup id;
|
||||
|
||||
id.mMeta.mGroupName = params.nickname;
|
||||
id.mMeta.mCircleType = GXS_CIRCLE_TYPE_PUBLIC ;
|
||||
id.mImage = params.mImage;
|
||||
|
||||
if (params.isPgpLinked)
|
||||
|
@ -712,6 +713,7 @@ bool p3IdService::updateIdentity(uint32_t& token, RsGxsIdGroup &group)
|
|||
std::cerr << "p3IdService::updateIdentity()";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
group.mMeta.mCircleType = GXS_CIRCLE_TYPE_PUBLIC ;
|
||||
|
||||
updateGroup(token, group);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue