X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Ffreenet%2Fidentityxml.cpp;h=e3905a9b418ef1b562a453ed3db418420882cb59;hp=f4e8c542723617b2105b8885e9a9599e3a6b51c9;hb=107bd97018964d48425306026d06afd038e84db0;hpb=5c0453c8697cfaa843dd7f799e5404733ee56e13 diff --git a/src/freenet/identityxml.cpp b/src/freenet/identityxml.cpp index f4e8c54..e3905a9 100644 --- a/src/freenet/identityxml.cpp +++ b/src/freenet/identityxml.cpp @@ -59,6 +59,11 @@ const bool IdentityXML::ParseXML(const std::string &xml) m_name=txt->ValueStr(); } + if(m_name.size()>40) + { + m_name.erase(40); + } + m_singleuse=XMLGetBooleanElement(hnd.FirstChild("Identity").ToElement(),"SingleUse"); m_publishtrustlist=XMLGetBooleanElement(hnd.FirstChild("Identity").ToElement(),"PublishTrustList");