version 0.2.18
[fms.git] / src / freenet / identityintroductionxml.cpp
index e1a4eff..f45f29d 100644 (file)
@@ -40,7 +40,6 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml)
 \r
        if(!td.Error())\r
        {\r
-               TiXmlElement *el;\r
                TiXmlText *txt;\r
                TiXmlHandle hnd(&td);\r
 \r
@@ -49,7 +48,7 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml)
                txt=hnd.FirstChild("IdentityIntroduction").FirstChild("Identity").FirstChild().ToText();\r
                if(txt)\r
                {\r
-                       m_identity=txt->ValueStr();\r
+                       m_identity=SanitizeSingleString(txt->ValueStr());\r
                }\r
                ssk.SetPublicKey(m_identity);\r
                if(ssk.ValidPublicKey()==false)\r
@@ -65,4 +64,4 @@ const bool IdentityIntroductionXML::ParseXML(const std::string &xml)
                return false;\r
        }\r
 \r
-}
\ No newline at end of file
+}\r