version 0.3.1
authorSomeDude <SomeDude@NuBL7aaJ6Cn4fB7GXFb9Zfi8w1FhPyW3oKgU9TweZMw>
Sat, 28 Jun 2008 17:53:00 +0000 (19:53 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 28 Jun 2008 17:53:00 +0000 (19:53 +0200)
src/freenet/introductionpuzzleinserter.cpp
src/freenet/trustlistxml.cpp
src/message.cpp

index e422d29..409a0f7 100644 (file)
@@ -202,7 +202,9 @@ const bool IntroductionPuzzleInserter::StartInsert(const long &localidentityid)
        }\r
 \r
        xml.SetType("captcha");\r
-       xml.SetUUID(uuid.toString()+"@"+keypart);\r
+       std::string uuidstr=uuid.toString();\r
+       StringFunctions::UpperCase(uuidstr,uuidstr);\r
+       xml.SetUUID(uuidstr+"@"+keypart);\r
        xml.SetPuzzleData(encodedpuzzle);\r
        xml.SetMimeType("image/bmp");\r
 \r
index 20fa730..9132427 100644 (file)
@@ -218,7 +218,7 @@ const bool TrustListXML::ParseXML(const std::string &xml)
                                m_log->error("TrustListXML::ParseXML malformed Trust in TrustList.xml");\r
                        }\r
 \r
-                       trustel=XMLGetNextSibling(root,"Trust");\r
+                       trustel=XMLGetNextSibling(trustel,"Trust");\r
                }\r
 \r
                parsed=true;\r
index 526dbd2..897ceed 100644 (file)
@@ -250,7 +250,9 @@ void Message::HandleAdministrationMessage()
                                        insert.Bind(0,Poco::DateTimeFormatter::format(now,"%Y-%m-%d"));\r
                                        insert.Bind(1,Poco::DateTimeFormatter::format(now,"%H:%M:%S"));\r
                                        insert.Bind(2,identityname+" Trust Changed");\r
-                                       insert.Bind(3,uuid.toString());\r
+                                       std::string uuidstr=uuid.toString();\r
+                                       StringFunctions::UpperCase(uuidstr,uuidstr);\r
+                                       insert.Bind(3,uuidstr);\r
                                        insert.Bind(4,boardid);\r
                                        insert.Bind(5,messagebody);\r
                                        insert.Step(true);\r
@@ -557,6 +559,8 @@ const bool Message::ParseNNTPMessage(const std::string &nntpmessage)
        try\r
        {\r
                uuid=uuidgen.createRandom();\r
+               m_messageuuid=uuid.toString();\r
+               StringFunctions::UpperCase(m_messageuuid,m_messageuuid);\r
        }\r
        catch(...)\r
        {\r