Skip to content

Commit

Permalink
fixed malformed messages
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Sep 12, 2014
1 parent b2e7a53 commit d7637bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ namespace util
if (i2p::data::Base32ToByteStream(address.c_str(), address.length() - strlen(".b32.i2p"), (uint8_t *)destination, 32) != 32)
{
LogPrint ("Invalid Base32 address ", address);
SendReply ("<html>" + itoopieImage + "<br>Invalid Base32 address</hmtl>", 400);
SendReply ("<html>" + itoopieImage + "<br>Invalid Base32 address</html>", 400);
return;
}
fullAddress = address;
Expand Down Expand Up @@ -735,7 +735,7 @@ namespace util
if (i2p::data::Base32ToByteStream(address.c_str(), address.length(), (uint8_t *)destination, 32) != 32)
{
LogPrint("Invalid Base32 address ", address);
SendReply("<html>" + itoopieImage + "<br>Invalid Base32 address</hmtl>", 400);
SendReply("<html>" + itoopieImage + "<br>Invalid Base32 address</html>", 400);
return;
}
fullAddress = address + ".b32.i2p";
Expand Down

0 comments on commit d7637bc

Please sign in to comment.