X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreenet%2Fidentityintroductionxml.cpp;h=f45f29db1e973f268f034c9d8b12c42dcfc9daf2;hb=1230cc420c955e75051d011d964bc68f061ba08c;hp=e1a4eff0b86dabf56e33bf0ac62cb0db543210bc;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/src/freenet/identityintroductionxml.cpp b/src/freenet/identityintroductionxml.cpp index e1a4eff..f45f29d 100644 --- a/src/freenet/identityintroductionxml.cpp +++ b/src/freenet/identityintroductionxml.cpp @@ -40,7 +40,6 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml) if(!td.Error()) { - TiXmlElement *el; TiXmlText *txt; TiXmlHandle hnd(&td); @@ -49,7 +48,7 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml) txt=hnd.FirstChild("IdentityIntroduction").FirstChild("Identity").FirstChild().ToText(); if(txt) { - m_identity=txt->ValueStr(); + m_identity=SanitizeSingleString(txt->ValueStr()); } ssk.SetPublicKey(m_identity); if(ssk.ValidPublicKey()==false) @@ -65,4 +64,4 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml) return false; } -} \ No newline at end of file +}