25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_http_upload: Fix logging of file size mismatch

This commit is contained in:
Holger Weiss 2016-01-04 01:01:14 +01:00
parent fc013442bb
commit 94c620cc27

View File

@ -412,7 +412,7 @@ process([_UserDir, _RandDir, _FileName] = Slot,
[Path, ?ADDR_TO_STR(IP), Host, ?FORMAT(Error)]),
http_response(Host, 500)
end;
{ok, Size, Path} ->
{ok, Size, Path, _FileMode, _DirMode, _GetPrefix, _Thumbnail} ->
?INFO_MSG("Rejecting file ~s from ~s for ~s: Size is ~B, not ~B",
[Path, ?ADDR_TO_STR(IP), Host, byte_size(Data), Size]),
http_response(Host, 413);