Software /
code /
prosody-modules
Changeset
3589:dec5683f91a2
mod_http_upload: Check attempted upload against quota even with no previous uploads
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 08 May 2019 13:50:49 +0200 |
parents | 3588:85057c4e7b66 |
children | 3590:d8cc8b71a199 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;