forked from tastytea/libravatarserv
parent
b8ca3f6d13
commit
75841d87a4
|
@ -56,6 +56,14 @@ const Request http::parse_request(const string &request)
|
|||
size = static_cast<uint16_t>(std::stoul(answer));
|
||||
}
|
||||
}
|
||||
if (size > 512)
|
||||
{
|
||||
size = 512;
|
||||
}
|
||||
if (size < 1)
|
||||
{
|
||||
size = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return { digest, size };
|
||||
|
|
Loading…
Reference in New Issue
Block a user