mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Check that at least one boundary exist in HTMLForm::readMultipart()
This commit is contained in:
parent
4dfa9324d1
commit
d7c7a91f66
@ -183,8 +183,8 @@ void HTMLForm::readMultipart(ReadBuffer & in_, PartHandler & handler)
|
||||
size_t fields = 0;
|
||||
MultipartReadBuffer in(in_, boundary);
|
||||
|
||||
/// Assume there is at least one part
|
||||
in.skipToNextBoundary();
|
||||
if (!in.skipToNextBoundary())
|
||||
throw Poco::Net::HTMLFormException("No boundary line found (at least one is required)");
|
||||
|
||||
/// Read each part until next boundary (or last boundary)
|
||||
while (!in.eof())
|
||||
|
Loading…
Reference in New Issue
Block a user