mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 20:34:25 -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
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue