[Dowload] Add size check
This commit is contained in:
parent
b4cff03ce7
commit
07e1edc050
@ -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", " ");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user