[Download] Fix mongoose crash
This commit is contained in:
parent
488706c71d
commit
65fcc95480
@ -413,6 +413,13 @@ namespace Components
|
||||
{
|
||||
std::string url(message->uri.p, message->uri.len);
|
||||
Utils::String::Replace(url, "\\", "/");
|
||||
|
||||
if (url.length() < 6)
|
||||
{
|
||||
Download::Forbid(nc);
|
||||
return;
|
||||
}
|
||||
|
||||
url = url.substr(6);
|
||||
|
||||
Utils::String::Replace(url, "%20", " ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user