# HG changeset patch # User Kim Alvefur # Date 1557316249 -7200 # Node ID dec5683f91a272582a9420531da8f7624fa3b0e1 # Parent 85057c4e7b66388266b197a92c81484501da2cf0 mod_http_upload: Check attempted upload against quota even with no previous uploads diff -r 85057c4e7b66 -r dec5683f91a2 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Wed May 08 13:48:24 2019 +0200 +++ b/mod_http_upload/mod_http_upload.lua Wed May 08 13:50:49 2019 +0200 @@ -110,6 +110,9 @@ if err then return false; elseif not uploads then + if does_it_fit then + return does_it_fit < quota; + end return true; end local sum = does_it_fit or 0;