mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added security 200 bytes limit on ID nicknames from getIdDetails
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8152 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9fa87de6e3
commit
36506ea1e8
@ -404,8 +404,11 @@ bool p3IdService:: getIdDetails(const RsGxsId &id, RsIdentityDetails &details)
|
||||
if (mPublicKeyCache.fetch(id, data))
|
||||
{
|
||||
details = data.details;
|
||||
|
||||
details.mLastUsageTS = locked_getLastUsageTS(id) ;
|
||||
|
||||
if(details.mNickname.length() > 200)
|
||||
details.mNickname = "[too long a name]" ;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user