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:
csoler 2015-04-21 19:03:46 +00:00
parent 9fa87de6e3
commit 36506ea1e8

View File

@ -404,8 +404,11 @@ bool p3IdService:: getIdDetails(const RsGxsId &id, RsIdentityDetails &details)
if (mPublicKeyCache.fetch(id, data)) if (mPublicKeyCache.fetch(id, data))
{ {
details = data.details; details = data.details;
details.mLastUsageTS = locked_getLastUsageTS(id) ; details.mLastUsageTS = locked_getLastUsageTS(id) ;
if(details.mNickname.length() > 200)
details.mNickname = "[too long a name]" ;
return true; return true;
} }