[Dowload] Add size check

This commit is contained in:
momo5502 2017-02-14 20:53:55 +01:00
parent b4cff03ce7
commit 07e1edc050

View File

@ -414,7 +414,10 @@ namespace Components
std::string url(message->uri.p, message->uri.len);
Utils::String::Replace(url, "\\", "/");
url = url.substr(6);
if (url.size() >= 6)
{
url = url.substr(6);
}
Utils::String::Replace(url, "%20", " ");